Merge pull request #3 from benbacardi/master

Vary response based on `HTTP_ACCEPT`.
Some small changes.
If we can't serialize an object we should error, not fail silently.
Merge pull request #4 from mikebryant/master

In ajax_request, if we can't serialize something it should raise an error instead of failing silently.