Added dispatched

Added a dispatched so that a function running via Task.run
can call a dispatch(function() {}) with full DOM manipulation access