Speed up history sync

Use new Horde_History->getLatestEntry($object) function
which greatly speeds up the sync process.

Also don't mark objects as deleted if they
are already deleted in the complete re-sync mode.
(we sent out a lot of unnecesssary delete requests via ActiveSync)