Fix timestamp bug in BasicMessage

Added fix of timestamp bug in BasicMessage

SSL support was earlier put in, but it seems like it has been removed. Any thoughts on getting it back?