More small bug fixes. Added hasData to Socket and isClientAvailable to ServerSocket.