Add some event listeners on example page to track progress of worker.
Code cleanup in webworker module
Cleanup some handling of termination of worker and alias self.close to self.terminate for consistency in event triggers