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.
Fix Json Builder.

 When creating a new object in the getter it should be added
 to the parent json.
Merge pull request #324 from manolo/mcm_fix_jsongenerator

Fix to Json Builder