A few fix plus missing 'constants' core module

Made two fixes:

http.request ignores hostname specified through "hostname" option. Now hostname has priority over host, as per Node documentation.

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 added the 'constants' module from Node's sources.