Add serializer param to RPC service

Allow a serializer to be passed to RPC service class
when it is instantiated.

Change-Id: I4162d8e94d023b9b724ea35b02823ddd6317032b
Merge "Add serializer param to RPC service"