Reorganize all the controllers, endpoints, and configs

Also move third party vendor submodules into vendor folder
Fix ads and modernize autoload

__autoload is going to be deprecated soon, use spl_autoload_register
instead. Also, fix the ads as they appeared to be untested.