Reuse the same document style implementation.

This facilitates customized filters and selectors.

As a bonus removed a couple of deprecated use of JsRegexp
improve off and on methods
Merge pull request #321 from ArcBees/jd_off

improve off and on methods
Merge pull request #320 from manolo/mcm_visible_fix

Reuse the same document style implementation.
Adding support for custom html elements.

When using GWT jsInterop to wrap native objects using @JsType
interfaces, casting between those elements to gwt Element fails.
We solve that doing a jsni casting.

- Adding tests for interaction with JsTypes.
- Fixing tests when running them in real browsers
Merge pull request #322 from manolo/mcm_custom_elements

Adding support for custom html elements.