Fixes #70 - "Log out" to main bar

Added the log out button to the main navigation.

Moved the logout scope function to the AppIMController for correct functionality.

Do we really need it on the settings modal now? Probably, not...