Read config from XML, various package changes to support new settings.