Fix two issues:

#1 http.request ignores hostname specified through "hostname" option. Now hostname has priority over host, as per Node documentation.

#2 bufferToString fails when encoding passed is undefined. On real NodeJS this works fine, and some popular NPM modules (request) were breaking in part because of this.

Also add the 'constants' module from Node's sources.
Merge pull request #57 from malaporte/buffer-and-client-fixes

A few fix plus missing 'constants' core module