Partway through changing to JSONRPC
Really rough first draft of JSONRPC.
Merge pull request #3 from bardiharborow/master

Partway through converting to use of jsonrpc