Added templates for detail pages
added template files for detail pages
added template files for dialogs AddAttachment and SimilarThreads
refactored model, controller and main template of qa