Added better logout handling

Added a button to logout and bring you back to the sign in page. When
trying to go to the sign in page it will automatically redirect you to
the tasks page if you are already logged in.