Updated to comply with most recent versions of upstream

- Newest versions add a "scope" argument prior to "user_id" argument.
  Added detection for this.

- Updated SQL prepare statements to mirror upstream.
Updated to match upstream

- Added "is_default" field to "oauth_scopes" table in SQL definition file.
- Added "is_default" field to "oauth_scopes" table in test SQLite db.
- Added "is_default" field to "oauth_scopes" table definition in README.md
Merge branch 'hotfix/12'

Fixes #12
Merge branch 'hotfix/13'

Fixes #13