Refactored MediaFrontendManager to be more flexible with different types
of media.
Improved code of Main-activity and helpers.
Removed code duplication in TabManager.
Improved minor details of code in several classes.
Added thumbnails to ImageViewer (was a lot of effort to do this
performance-wise).