Fix for "History retrieval failed" problem
Fixed whitespaces issue
Fixed test case
Gitignore update
Fix failing test.

The keys used for panel names changed in 123c89c. This updates the test
for those changes.
Merge branch 'history-fix' from pull request #95

Fixes issues with loading history state.