UK: get content type from filename, supports windows csv uploads with application/octet-stream content_type, closes #289
UK: reduce repetition
Merge pull request #290 from onaio/289_windows_csv_upload

support csv uploads as media on windows os