Workaround current polymer limitations.
Cleanup.
Merge properties/methods when extending another definition.
Added on-elements-upgraded. Fixes #28.