extracted logic to a new method
added docs
fixed clicking links in figcaptions
removed unnecessary character
added unit test for ApplicationView::shouldHandleMedia()
correct order of passed parameters
Merge pull request #420 from Wikia/HG-331

HG-331 Fix for clicking a link in figcaption defect