Improve XHTML5 Compatibility

This PR only apply changes on files proper to Glimpse.Core project.
I also made replacement on the samples project, even it is not useful (to me).