Added client.js module. In client-server mode, it can use rpc method to issue calls. In node-webkit moce, it can use the loc method to issue direct calls to rpc functions.