Removed background operations from TreeCache. Added reordering of events, so that we always send notifications when there are no pending refresg/getdata operations pending.