Improvements to support tracking execution

With these changes people can monitor the execution queue and know which tasks are part of which execution request. Also some little related fixes/cleanups in their own commits.