Cleans up module namespaces
Adds function to get json representation for BaseMessage
Half finished chaging transaction code