Fixed issue with images for first work unit being downloaded twice.
Refactoring: removed unused functions.
The events module now provides a facade for the pubsub module
functions.  This way we can more easily deal with the version issues in
the pubsub module, only fixing it in one place.
Refactoring: renamed event ids.