BK-1271 History record is not saved when chapters are modified

Little fix for history saving. Also I have written some unit tests for booki.utils.log module but inside of new booktype app (in order to be picked by the test runner).

Besides that, I noticed that the book bar in editor was rendering odd, so also fixed that in this PR.

That's about it!