Refactored SSL code. Client and Server example projects now work in encrypted and non-encrypted modes.

Signed-off-by: Alexandr Zarubkin <me21@yandex.ru>