Changed profiling test to use its own model and resource with a more standard setup.
More performance improvements.
Cleaned up ToManyField.hydrate_m2m().
Reduced number of calls to callable() and other small fixes.
Reolved merge of performance-improvements into all-the-branches