Make thumbs in upload dir. Remove uploaded files.
Added winston as logger.
file_type was replaced by media_type.