Add logging and support SSL proxies

Add logging, handle SSL, and make pure css protocol agnostic