Fix up error dialogs.

Also, finally adds redirecting to the login page if your session has
timed out