Add SSL support and some cleanups