Add API for duplicating a collection (bug 906186)

https://bugzilla.mozilla.org/show_bug.cgi?id=906186

**Work In Progress** I'm missing a couple tests at least, to make sure overriding fields works and the uniqueness checks work as well.