Added support for a brand new JSON configuration format!
Refactored around a few thing, small bugfixes.