Add authentication support

Check https://github.com/mikeal/request#http-authentication for more
details.
Basically sendImmediately = false for digest and = true for basic