Rework activity navigation controller a bit

-Return to main activity whenever there are no nore activities left
in an imaginary "stack"
-Fix a few crashes with alert dialogs
-Add support for serverMisconfigured() back because I forgot to add it