Refactor TcpConnection into more generic StreamConnection template.
Make handler parameters const.
Fix method visibility.
Fix infinite recursion.
Add SSL connection class.
Create HTTPS connection and Secure Glacier connection, and use these by default.