Some code cleanup, added IPv6 address parsing. Refactored SSL code.

See Client and Server examples: they now can work over SSL.
Server now opens two ports, 80 and 81, for plain and encrypted communications.