abf908b14f
We need to reset things at the UI level when we get a gappy sync, so give the clients something to listen for. Also add a bunch of tests for that bit of code.