Implemented saved sessions

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

Leaving the cookies in the browser after a logout will instantly cause
the user to get logged in again upon the next page visit (to a page with a
login check).
Merge branch 'duggasys-feature-login-system-#93' into duggasys-CourseMenu