Move to new config system, add proper multi-server support, misc fixes.