Fixed a warning due to usage of a possibly uninitialised value.
Marked the template parameter as mixed when fetching raw data for a media. This allows for the now ad-hoc templates.
Added a call to get metadata for searching.
Updated the models to reflect the new possibilities for searching.