Added a dialog service.

Also updated dom2.js to partially match the Selectors/DOM4 spec. Fixes
#1