Added SSL support -- fixes #4