Use of dirty flag

The SyncAdapter now uses the dirty flag, instead of last modified date, when synchronizing.