Split out contents inline output code to separate class

Only used in a couple of places. IMP_Contents is more of a data
processing class; inline output is display code instead.
Better processing of short display label for autocompleter