add optional OAuth(http, https, options) constructor signature

This change makes it possible to use this module with mock HTTP and HTTPS implementations and be actually useful in a thoroughly tested project which has integration test independent on the actual network.