Added ensure_authenticated_user_for in api_controller to attempt to authenticate using a devise token before attempting doorkeeper