Adding dependency on mikeal/request and changing to using it instead of http module.