Fixed login/logout script and perfected functions.php's url paramiter manipulation functions.