Add support for rpc service code generation using templates

Fixed issue with multiple module outputs and PluginProtoCompiler
Add 'service_block' for service generator templates