better code organization for oauth

classmethods ftw!