JSON RPC

This is a placeholder PR for using JSON RPC.  See README.md for reasons and examples.  Comments welcome.