Cli mode now depends on globally set application context
There are mainly two issues with that:
- ApplicationContext is misused for a different purpose, which conflicts with the default purpose. E.g. one cannot set Production/Staging as context and properly run a frontend subrequest with that.
- Current code checks for a "magic" context "Testing/Frontend", to properly set the cli mode to false. This means calling the frontend application only works properly (when called from cli), when the global env is set to exactly that string