A multi-million-pound project to transform a dilapidated harbour in a Scottish town has taken a step forward.