Move media upload directory outside of the docroot

Hack imagefly to allow source files to live outside docroot.
Set cache dir and media dir for imagefly as in APPPATH.
Stop saving file_url to media model
Rework code for generating media file urls.
Merge branch 'media-model-api' of git://github.com/ushahidi/Lamu into media-model-api