Moved a bunch of functions to CollectionsModule

And moved Collections to its own namespace.