Fix context for setAuthorization call

Ran in to this issue when I'm using the library wrapped by [when](https://github.com/cujojs/when) (it may or may not be a related bug).  Basically the `setAuthorization` had the wrong `this` for its invocation, so I swapped it in the coffee to wrap it in a closure.