add API endpoint for creating and retrieving collections (bug 894643, bug 894587)

https://bugzilla.mozilla.org/show_bug.cgi?id=894643
https://bugzilla.mozilla.org/show_bug.cgi?id=894587