remove all remaining debug console.log() calls
don’t attach multiple instances of event handlers

(This was sending queries over and over if the websocket connection was
re-established, for example due to the hourly disconnect.)
source-backend: send progress updates every 1+rand() seconds

This makes the progress bar work well for both quick and slow queries.