Added log out functionality.

New pull-request instead of pull-request " Logout functionality #590: Added logout functionality to the menu to be able to log out from the application, which was not possible before. "