Rewrite DialogUnderlay and add manual test.
It wasn't working at all before.
Also removes dojo/window and dojo/on dependencies.

It still needs a functional test, but perhaps that should be delayed until
the DialogLevelManager is ported too.

Fixes #201.