Internal change notification improvements

Created a TD_DatabaseChange class to encapsulate info about a new
revision. Added a flag that indicates whether the document may be in
conflict (not used yet.)
Fixed regression where persistent TDReplication never notified

Persistent TDReplications were never posting progress-changed
notifications. Fixed now.