Autamatically login when the sidebar is closed

If the browser starts and the sidebar is closed, still logs in the user if the
cookie is not expired.
Sidebar: remove the ability to give a nick when creating the app
Merge pull request #184 from tOkeshu/closed-sidebar-persistent-login

Automatically login when the sidebar is closed