lib/terminal.js: .toString(format) will now directly render in html, ansi, plain.
lib/terminal.js: fix documentation.
adding example.js with rainbow text.