Port unit tests and fix bugs

- Ongoing unit tests porting and bug fixes
- Ported CRUDOperationsTest, DocumentTest, DatabaseTest, ManagerTest,
and RevisionsTest
- Fixed MonoSQLiteStorageEngine.GetDeleteCommand bug when constructing
a delete SQL command.
- Fixed ChangeTracker bug when checking the UserInfo
- Fixed Database.ParseRevIDNumber() bug when there is Whitespace at the
beginning or at the end of the revision id substring.
- Fixed Database.ParseRevIDSuffix bug when formatting the minIDToKeep.
- Worked around file.MoveTo Sharing Violation issue for
Manager.UpgradeOldDatabaseFiles()