Adds ability to also get the mode inside the Execution monad.
Merge pull request #1088 from CommBank/execution_mode

Adds ability to also get the mode inside the Execution monad.