Proxy and SSL support

Keeps backward compat of specifying domain and port at the same time.

Closes #11, #16, and #12