add API endpoint for creating and retrieving collections (bug 894643, bug 894587)
Merge pull request #3 from cvan/collection-create

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