Implemented saved sessions

login.php now sets cookies to automatically log in the user if they
ask for it.