Some refactorings in ViewsHandler class. Introducing the new TemplateVars class.