Add gallery/media relation APIs
Merge pull request #512 from eko/api

Add gallery/media relation APIs