Some Vulcanize compatibility changes.

* Changed the ID of the settings dialog to not conflict with Polymer's
settings icon's ID when the latter is inlined.
* Added alternative template selection for when the imported files
they're in are inlined.
* Fixed exception when there are no global messages.