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