A £15m Visitor Learning centre intended to be the ‘global hub for crafts, heritage, and skills’ is to be built in Dumfries.