These towns saved their local institutions through community