Add some support for https

Some malfunctions are possible when using an agents and a sockets reusage, which will be fixed on Node.js 0.12, or if an users will report some.