Expose stateVariables in REST API.

Store requestData from REST API under key "requestData" in state variables.
Previously requestData was stored under key "req".
Merge branch 'rest-state-vars' of github.com:NitorCreations/nflow into rest-state-vars