Make index.php a real front controller, move login.php and logout.php to includes/
Move front controller to includes/main.inc.php, shorten index.php to a minimum
Add .gitignore