Simplified style.
Refactoring.
Resolve correct prototype when extending Custom Elements.
Provide correct extends/prototype in all cases. Added support for :extends when extends can't be infered.