Factor code editor and fixes https://github.com/Polymer/designer/issues/39.