Switched to SSL implementation
Fixed bug with DataInputStream.available() and sockets