Removed websocket and fixed dependencies for java lib.