Replaced all len() queries with .count() queries. This should be very much faster.
Also other speed improvements in clustering.
Implemented box_disjoint query for photo entries.
Implemented NormalizedPhotoSet and NormalizedPhotoEntry.