Cleanup and pulling out similar code to libraries.

All structs are now Capital and names of instantations are
now lowercase names, instead of just l (letters).

Created more consts (but want them to be part of a struct)

Pulled out some more json parsing into the serializer lib.
Might pull out all utils into one, and do want to pull out the json
and database into their own modules.