Reorganized LocalDispatcher

`LocalDispatcher` now just constructs a `Job` and lets it do the heavy lifting. I've also fixed 2 bugs which could cause issues with background dispatches, by changing either the script context or renaming the dispatched nodes.

This also includes the quick UI fixes from  #1070, so I'll close that one, since it hasn't been merged yet.