some refactoring of the directives into couple of other files
added the ability to add component type as a class to divs