Add JSON encoder class.
Moved function to serialize file.
Moved functions to deserialize file.
Rearranged functions to make more sense, with MUNI specific functions.
Organized connect() function.
Wrote encoder class.