Add promises to the widget framework.

Parallel to @jasongrout 's solution (human race condition).
this this doesn't need to be that, does it?