Transmit JSON data
js code inside proper class
few changes
use different message structs
move code to pool.go
Merge branch 'develop'