Neaten up the codebase

Use CountedColor and SquashedColor everywhere. Change NSSize to CGSize to
enable iOS porting