added bare bones Promise/Deferred and Dispatcher.clear()