Adds file type detection by file header

This is currently enabled for jpgmin only (for testing purposes) but
will eventually find its way into the other tasks if reliable enough

in relation to https://github.com/asciidisco/grunt-imagine/issues/30
Finish type-header