Rewrite server and client with rpc.
Remove useless code in server.
Remove protocodec module.

The protocodec module has been included in rpc module.
Add local jquery.
Change client to use greenlet to run the collecting job.