turn the collection view flags into proper bitfields
Merge pull request #63 from jwilling/bitfields

Make flags proper bitfields