Add file extensions and helper functions to meta.js

Added file extensions to the meta info. Added helper functions
getExtFromMimeType,  getMimeTypeFromExt, getFilenameAndExt from a file
name, and detectCodeMirrorMode from a mime type