Gave up on dialog html inside a script block.

Moved dialog html to MapPageBase.jade.
Controller is now invoked soon enough to get scope before calling for dialog display.
Closer, but still having problems with scope.

Commit before trying directive.