Add support for GenericHTMLIdevices (see eXeLearning branch)