Support binary response entities

This PR adds support for binary response entities both in the XHR and node clients.