Adding class method for view tag_name and class_name

Hello,

I think to have to redefine the tag_name and class_name method in the views to configure them could be improved. Here I propose to promote them to class method, so the configuration would be in the same style than for the element attribute. I implemented it in a backward compatible way. 

Tell me if you want any improvements on it. 
Loïc