Tranfer the business code for upload files into the Media Model.
Merge branch 'trunk' of https://github.com/demonofshadow/ASAV into james