migrating oauth from .htaccess to apiwrapper. may god have mercy on our souls