Minor cleanup in test models

Removed on_delete kwarg not supported in older djangos.
cache key calculation optimization for python 3

Use json from standard library in python 3 and simplejson in python 2:
- it's faster in python 3
- it finally supports sort_keys
Better benchmarks

- added complex query construction and cache key benches
- made them faster
- better reporting and ^C handling