(#7749) get rid of "set_run_mode" method in Application class
The "set_run_mode" method in the Application class made it a little
too easy to do dangerous / scary things to the main application
state during run time. Get rid of this method and provide slightly
more controlled ways to accomplish the necessary goals.