Refactored gulp tasks
Updated ws library and added ws origin work around
Fixed java-server related bugs

- Fix for getting subscription message before the main subscription response
- Fix for command wait timeout argument