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