Changed config system

Need to update everything, but got the framework done.