Split collections module

Riak and in-memory collections each belong in their own module.