Config refactoring

* Moved constants into config file
* Loaded config directly into json struct