Fix various refresh-related bugs.
Merge branch 'master' of https://github.com/UnicycleLabs/clipper-foundation