add support for css classes

add classes() method to views to apply custom classes to wrapper class.
add js methods for getting other view instances.