Sheila Sim explores why a Scottish coastal town is channelling the spirit of a 19th century conservationist