Clean up CollectionView code.
Add .travis.yml, minor code cleanups.