Add WebSocket.whenReady for Java 8

Add Java 8 lambda-friendly factory method to WebSocket, similar to EventSource. With tests.