Made oauth2 type field configurable

Related to this one https://github.com/Mashape/mashape-oauth/pull/11