Added slide viewer for URLs with multiple media components.
Fixed bugs related to media viewer.
Code cleanup.