https://github.com/gerdemb/SQLiteChangesetSync
As you noted, detecting conflicts is easy, but handling them is not.