A service of dedication took place last night at a church in Scotland for its new eco building which aims to show the way ahead on renewable energy.