modified how workStop is handled

io.sockets.emit was not reliable in app.js, switched to checking the
value of "working" global variable