Added status panel and view model. Added support for closing dialog from HTML/Javascript.