Add support for Geogebraweb  HTML5 applets

This also changes many of the error messages from alert pop ups (which are annoying) to console.log() messages which can be read using firebug or one of the webdeveloper windows.