Work on #7: Clean up character movements.

I'm not 100% sure that this actually fixes #7 because it seems to be rare and
difficult to reproduce. It _might_ fix it. I'll leave the issue open a little
longer, and if no more confirmations appear, then I'll close it.
Add a version number to help with error reporting.