gallery-uploads: Do not require title for uploading to existing gallery

If uploading to existing gallery, use that gallery's title to set the
photo title, and do not require the title again.
Add unit tests and database migrations to tbabej's contribution.