Speedup appending of new lines to the terminal screen.

Compile many append-inserts into a single client command. Generate the
html class attribute string on the client.

The emulator is now usable to view normal cat/grep outputs without crawling
to a halt.