use supplied mime if supplied when injecting
fix a core from bad return values
Merge branch 'diffbot-testing' of github.com:gigablast/open-source-search-engine into diffbot-testing