First version of an http image uploader.

refs #16
Better error handling for the uploader.

fixes #16