fixing import error (fixed & tested elsewhere, needs to get in here)
Merge branch 'release-0.10' of github.com:learningequality/ka-lite into robust_userlogs
needed to increment counters and to sign AFTER setting the counter.