Redid redirection to use session cookies instead of $_GET.

- Added $_SESSION["from"] = $_SERVER["PHP_SELF"] to every page the user visits.
- Redid the login.php and logout() code to get $from from $_SESSION instead of $_GET.
Make the login links from activate.php redirect to index.php.
Remove from paramaters from login and logout links.