Flatten service context on template evaluation

Template evaluation function "context" for services flattens all ancestors'
contexts into a single map.
Add contextFilter template evaluation function

contextFilter only returns context items whose key matches the prefix and
removes the prefix from the key
Merge pull request #981 from control-center/feature/ZEN-10755

Add inherited, filtered context to service template evaluation
remove GetServiceEndpoints subtruct pointer from RPC
GetServiceTemplates()
GetServices()
AddressAssignemnt
RunningServices()
use string instead of ServiceState as key to map for GetServiceStatus
for jsonrpc, cannot return *[]*dao.RunningService in GetRunningServices
for jsonrpc, cannot return *[]*dao.RunningService in GetRunningServicesForService
fix elasticsearch unit tests
GetServicesByPool()
switch to using jsonrpc encoding vs gobrpc
GetServiceStates()
fixed serviceeval_test findChild()
fixed host_test SetAssignment
fixed cli/cmd: service_test and template_test
fixed hostpolicy_test ServicesOnHost