Added .htaccess file.
Restructured application, separated api.
Removed old api files.