Augment output formatting.

Break out the formatting logic into the `repl/concat-token` function.
Add '?' and '!' to the line-breaking group alongside '.'.
Omit spaces after newlines.