Move log window stuff into its own class/nib.

Also rewrite the logging stuff to use -textStorage instead of being
hacky with inserts.