Doing some more work

- Pushed common objects (JSON, and such) into a library
- Did a bit of cleaning up and small rewrites
- Allow serializing, to export JSON and to save settings
Oops, forgot to add config writing
Forgot to toggle modules

- Need to add timer sync
- Need to toggle software (need to rethink this out)