Added functionality to remember user sessions

Sessions are now handled via cookies and an auth_token that can be remembered.