filed.cssClasses() can take a functino argument

Also, moved cssClasses logic to the container of input fields (just like
it applies to the container of column fields).
Add support for application-wide custom view templates