Bug 1029944 - Switch ModalDialog and AppModalDialog from using strings to using l10nIds

* Replace mozL10n.get(l10nId) calls with node.setAttribute('data-l10n-id', l10nId) in ModalDialog and its use cases.
* Fix jshint errors.
* Update ModalDialog test.