Handle unexpected authentication loss.  Add modal result promises.

* Add log in modal for use when user becomes unauthenticated.
  Currently not used. :(

* Methods of the "$modals" service which make modals appear now return
  promises of modal close result.

* Reload page when a user becomes unauthenticated for a reason other
  than clicking "logout" button.