Fixes https://github.com/Polymer/platform-dev/issues/22, https://github.com/Polymer/platform-dev/issues/25, https://github.com/Polymer/platform-dev/issues/39