Rewrite MediaManager class

Rewrite MediaManager class and start completing the config file for both
client and connector options.
MediaManagerController changed to work correctly with new MediaManager
class.
All views files changed to work with new MediaManagerController.