Store encoding profiles in the DB

Profiles are now connected to MediaBase subclasses through a M2M
field. This also makes MediaBase an abstract base class.
Connect signal handlers in models.py

This is slightly more obvious now that the signal handlers are
located in a separate file.
Refactor thumbnail HTML generation method
Remove currently unused admin forms
Refactor local multimedia path function name