Read the node class attribute and use it as a menu item class name

There is currently no way of having custom class names when using the fromMenu approach. This patch adds support for reading the class attributes of elements when using a html5 menu.