Add class name to every element.

This fix is provided by Bauer and adds a class to every element to
enable to to be uniquely identified by js.
Merge pull request #758 from Sophist-UK/bauer_add_class_to_all_elements

Add class name to every element.