A simple base for JS/RPC.