Refactored some ShardMapper ugliness and cleaned up Config.init()