adding class method and related tests
changing tag_name and class_name implementation

As per Adam instructions, class variable should be avoided at the
moment, so making a new implementation method based
Merge pull request #22 from loicboutet/promote_tag_and_class_name_as_class_method

Adding class method for view tag_name and class_name