Oauth as package

Same as https://github.com/tomchristie/django-rest-framework/pull/1840, addressing https://github.com/tomchristie/django-rest-framework/pull/1840, just brought up to date with v3.1 so that it can be merged.