Rewrite config system with plugin support

* Plugins now have tuneable parameters with the new json config files