def env(signature, environment)
    if signature.is_a?(Array)
      signature.each { |s| env(s, environment) }
      return self
    end
    @environments[signature] = environment
    self
  end
def env(signature, environment)
    if signature.is_a?(Array)
      signature.each { |s| env(s, environment) }
      return self
    end
    @environments[signature] = environment
    self
  end
Register environment to run json-rpc handler w/ dispatcher.

 Currently environments may be set to modules which requests
 will extend before executing handler

 @param [String,Regex] signature request signature to match
 @param [Module] environment module which to extend requests with
 @return self