Simpler RPC, fixed #56.
Updated tests and examples, #56.