More work on the uploader. It can now maintain existing galleries.