Add more fine grained rule env execution.

I guess there is no way to grab ProtocolMetadata in container RuleInstaller?
Or I guess I don't need the host there, as it's localhost, right?