Moved collections stuff into api package.
Version bumped to 0.9.0.