Debug builds require the full JSON module for ```stringify```.
Amendments to the model code.

* Moving common code to new code_model abstract class.
* Altering record fetching code.
* Amending existing classes to suit.