Add gallery/media relation APIs

I've added those two methods to attach/detach a media on a gallery:

![capture decran 2014-03-17 a 17 27 34](https://f.cloud.github.com/assets/103900/2438392/11680bd8-adf1-11e3-8ffc-cb9d0885eeac.png)