Allow fields to be defined on API view

It can get messy to have to define special methods on the model class to get the right data for backbone. This PR allows one to specify the methods on the API view class instead.

I prefer this to putting these methods on the view and this is similar to how the admin views in Django work.