add factory for element wrappers

Fixes https://github.com/dart-lang/core-elements/issues/73