Fixed one important bug, and a few test bugs
Merge branch 'release-0.10' of github.com:learningequality/ka-lite into develop