Tls 1.1

This new version of the pull request has the following changes:
- patches to fix warnings, and comments, included, and squashed to have a clean history
- coding style changed to use FunctionNamesLikeThis
- patch related to hs_bytes_processed is dropped, and will be treated separately. This fixes the failing unit tests