added on_sync... events, django performance changes

performace because of:
bulkops.py written by Ole Laursen
http://people.iola.dk/olau/python/