Make highlighting more useful as a lib

Added a few features to the highlighter API, when using it as a library:

- Optionally send output to arbitrary OutputRange instead of only stdout.
- Add 'highlightBare' function which only outputs the span-highlighted code, without any wrapper HTML.
- For 'highlightBare', optional prefix for CSS classes, for better CSS hygiene.