JBIDE-17163 Visual Preview: Adding related css, js files support. Refactoring