Create OAuth2.class.php

Common functionality of OAuth 2.0 here.