First pass at config loading overhaul.