finish RPC and refactor router
Merge pull request #18 from fengjingchao/dev

finish rpc interface