Edit Book: Add support for spell checking int he code view. Now spelling errors are highlighted in the code view for convenient correction as you type. This can be turned off via Preferences->Editor.
Use explicit wave highlighting since we dont want a theme dependent highlight style
A spot of refactoring