Renamed flush to nextInQueue.

flush is used in Meteor as Deps.flush(), so to not confuse.
Renaming web worker file.
Removed global variables in tests.

Tests can be run in parallel and there could be issues with global
non-constant variables.