JsonRpcHandler: Add pre and post process callbacks

Change-Id: Iec38019538c9c59cbfbdc352bcb033cb0a57ad04