Added media directory and template/model support for file uploads.
fixed file system after last commit