(image_thumbs) Various and sundry cleanup.
(image_thumbs) More cleanup, beginnings of Image utils.
(image_thumbs) Added a tonne of stuff for user permissions