Tidied up the index.php by removing the requires and moving them to the App class