Eliminate almost all PHP from index.php