added ssl support, fixed a bug in receiving continuation frames.

simply wrapped in openSSL, did not handle any advanced key/cert related stuff.