Serialization

Support for serializing objects into JSON.
Moved a couple methods from AST to JSON class.
Updated README to reflect changes.