Updating the ordering of requiring files in index.php to better suit the use of the api