Backbone models for an image gallery
===

I'm building a simple image gallery with tagging support. Each tag has a name and a parent. There is one root tag under which every other tag resides. An entity (image or film clip) can have multiple tags.

I am unsure how to setup my objects and provide data. How should I send tags along with an entity, while allowing them to persist on change? Should I use to separate models here, one named Tag and the other EntityTag? How do I go about mapping them to persisting URLs?

I'm sure this is something that has been solved many times before, but what is the best solution. This is my first project using backbone and I'd appreciate some help to get me started. I've read a the answers to a [similar question][1] with no luck. I also found [this][2] but am unsure how to implement it in my own case.


  [1]: http://stackoverflow.com/questions/7288475/backbone-collections-nested-in-models
  [2]: http://documentcloud.github.com/backbone/#FAQ-nested