Multimedia fixes

- cleanup of multimedia stuff
- starting to move stuff over to a class-based view architecture
- addresses this ticket http://manage.dimagi.com/default.asp?49003