Controller mixin for authenticated API calls

Mixin to include in ApplicationController of Rails applications which require authentication checks and perform API communication via ActiveResource models.