adds oauth_middleware to settings.installed_apps; fixes model