json-blaster.js: Properly handle pause/resume when not connected
json-blaster.js: Properly handle pause/resume when not connected

If pause() is called before the connection completes, defer emitting the
pause event until the connection completes.

If pause()/resume() are called after the connection closes, do nothing.

cmusatyalab/opendiamond,cmusatyalab/opendiamond,cmusatyalab/opendiamond,cmusatyalab/opendiamond,cmusatyalab/opendiamond