Restore fetching changes compatibility

Restore sortkey handling
AgeSearch: Normalise period into days for Gerrit query
ServerVersion: Fix version comparision (tested)
SyncProcessor: Pass intent to constructor instead of isSyncRequired.
Some additional null checks

Change-Id: Ia6bc9ed2c5e0430a04f0bab4f25d1d7558c6b9dc