Register a gallery post type, and use Posts to Posts to manage relationships between galleries and attachments
Merge pull request #1 from danielbachhuber/gallery-posts

Introduce galleries