Optimizatizations and bugfixes for JBookPanel.