Move response sending into a helper function.

This makes it easier, at the moment, to switch to non-asynchronous
response sending whilst fixing code that should already be properly
asynchronous.
Transfers should have plural JSON root element
Merge pull request #70 from mattdenner/transfers_should_have_plural_root

Transfers should have plural root