Add promises to the widget framework.

Parallel to @jasongrout 's solution (human race condition).
Why are we commenting out these?