Correctly calculate the size of FileUploads. See BZ-418985
Remove debugging cruft
Added handling from Connection: close header and server closed http client connections.

Signed-off-by: Gil Markham <gilligan@groupon.com>