Initial breakaway code from my fork of oauth2orize (integration branch).