piggy: pulled out a request processor to handle requests and start an http server.
piggy: adding json support to send a request to the client and execute rpc call