Major refactoring

* Redoing how plugins and commands are handled.
* Changed config files to JSON instead of our weird previous format, in preparation for permanently dropping pickle (switching it out for json).
* Updated plugin manager.