move mime detection code in separate file that can be included
drwxr-xr-x - data
drwxr-xr-x - src
drwxr-xr-x - tests