Namespaces for Media/*.
Namespaces for Mime.
Fix typo in exception class name.
More namspacing.
Namespaces and autloader in bootstrap.
Fix fopen modes.