Make minor adjustments to image resizer.

Maded a couple of minor adjustments to the image resizer so that it can
do a slightly better optimal crop (in some cases).
Merge branch 'master' of github.com:CodeSleeve/stapler
Clean up automatic mime detection process.

Cleaned the the process used to auto-detecte mime types and file
extensions when attempting to create a file from a remote url.