[ORB-336] Improved PDF thumbnail generation.

* Removed dependency on NewMagickWand
* Removed ability to provide offsets in URL
* Added feature to correctly scale and crop images when both width and height are supplied
* Added feature to allow either width or height to be supplied in URL (which will scale the image, keeping aspect ratio)
* Embedded images in PDFs are now being correctly rendered
* Fixed handling upload errors