seperate mimetype guessing from filename
fix variable name
actually return result
Basic tests for getFileNameMimeType
Merge pull request #3621 from owncloud/path-mimetype

seperate mimetype guessing from filename