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

We want to wrap flows and other functions inside the Execution context, in order to be able to do that we need to access the Mode and/or the job conf.

This adds the methods `getMode` and `getConfigMode` to provide access to the mode.