Change the structure following Polymer's conventions

Major refactor following instructions from Polymer site on
http://www.polymer-project.org/docs/start/reusableelements.html