Minor refactoring.
Fixes issue #276: Enable Response::sendFile() to operate on resources