Implemented initial infrustructure to handle rpc requests.