Allow providing an alternative http lib

For use with angular + node-webkit