Only build master branch on travis-ci
Add empty https and tls modules, and stuff http.Agent, so that libs that are only referencing them still are able to load.
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 branch 'buffer-and-client-fixes' into coveo
Merge branch 'fixes-for-request' into coveo