Added hooks for the manager media views.
Changed the upload entity to use the mediaprovider.