Previously the browser tried to create a preview for any file that was selected, but this would fail on non-media files (text files, etc). This patch fixes that by exposing the 'supported' boolean with a new method, FileItem.getSupported(), which is called in WindowFiles.qml as another check before generating a preview.

I also slightly changed how 'FileItem._fileExtension' is assigned.