add ability to set extra params to oauth2 url endpoints

Co-authored-by: Benjamin Sellers <bsellers@gmail.com>
Implemented refreshAccessToken method