A Galloway village community hopes to turn the building into a centre celebrating James Clerk Maxwell.