Lookup mimetype by resourcePath if not supplied
Merge pull request #4 from shama/mime

Lookup mimetype by resourcePath if not supplied