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.