Add cross-browser support for DOM mutations.

Fallbacks on Mutation events if MutationObserver API is not present.
Fix minor bugs in example html
Merge branch 'master' into gh-pages