Made mappend for Formatted collapse punctuation.

Moved a bunch of functions (headInline etc.) from Util to Style.
Better heuristics for punctuation collapsing.