Rails 4 compatibility with bearer and client credential support

This adds bearer and client credential support (from https://github.com/GSA/oauth2-provider/tree/bearer-header) to #72 (Rails 4.1 compatibility).