Fixed issue 98.
Added utility methods to make tls-socket work with socket seamlessly.
Fixed issue 99.
Removed unused variable.