Shopify/batman — pull request #399 by hornairs (2012-04-20 05:12:45+00:00)
Title: Extra rest actions

@nciagra @kristianpd for review please

Adds `Model::request(action, options, callback)` for running custom requests on models without instantiating `Batman.Requests`

For example:

```coffeescript
class Order extends Batman.Model
close: ->
@request 'close', {method: 'POST', data: {reason: 'This plushie sucks.'}}, (err, jsonResponse) ->
throw err if err
@updateAttributes(jsonResponse)
```

Some other stuff underneath was re-architected as well.