Fallback to mimetypes without extension Fixes #106

Added unit tests for checkFileFormat. Used custom
mimetypes for formats without a declared one. Would
like to put the mimetypes/parser lookup on X.file.