Rename Photos module to Gallery.

Also update table names and related models.