Multiple tidying changes.

Each changeset should be relatively self-contained.  Fix spelling, add a dumb file to gitignore, remove a bit of dead code and start to refactor ui.addMessage calls so that we can intercept and possibly queue them if the ui isn't ready to receive (or at the very least move class and styling information down into the ui code).