Add autoloader and set .htaccess

i don't think this class should register itself. It breaks single responsibility principle