Added some very basic classes; added json rpc