Moved config loading into it's own class.