Supporting Expresso v3.
Using json-rpc to communicate with remote server.
Some code cleanup.