Started to work on the refactoring.
Added a few comments.
Merge branch 'read-granularity' into develop
Started to refactor the models.
Refactored both the models and the tests.
Fixed a bug where the models refused work.
Making more changes to the models helpers.
The dashboard at least loads, now.
Merge branch 'new-schemas' into develop