oauth2server: resource authorization tests

* Adds tests for the different resource authentication methods
  which are possible with Flask-OAuthlib.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>