DUI: view model change(for nested classes)

# Preface
I have added new class `BrowserInternalElementForClasses`. It's used to store classes separately from nested classes.
Also I've added some tests.

# Reviewers
@Benglin,@vmoyseenko, please take a look.