Use request library to support HTTPS and simplify code

@pixelblend:

I'd like to be able to use the HTTPS services API URL. The [`request`](https://github.com/mikeal/request) library does this transparently and simplifies the logic.

What do you think?