3.0 requestaction environment

This implements the 'environment' key for requestAction as described in #3566.