Adding root search path, and setting the autoloader.
Adding a application bootstrap file.
Moved the index.php bootstrap into a sub folder of api.
Adding an .htaccess file to the api directory.