callcatcher: update unused code

Change-Id: Ida4221bfbfe30f7e1abd5c367d8cb8b9edd310bb
Resolves: fdo#68347 fix word count with recorded changes

also see fdo#46757

a) We need to ignore redline-deleted text, but count redline-added text
b) each block of text is denoted by its end position in the model
   and where that maps to in the view so a hidden portion
   should record its end point not its starting point, and a non-hidden
   deleted portion should always record its end point
c) when mapping a model position to the view we take the offset of
   the model pos arg from the block end and use that to offset the
   mapped block-end view pos to get the final view pos. But for
   hidden portions that won't make a whole lot of sense, and
   end up offsetting into prior portions, so map all positions within a
   hidden portion to the same block-end view pos

add regression tests for these cases

Change-Id: I45c76bba47fd430bc3bccb5f919502660d415d9e
drop SW_DLLPUBLICs for unit-test only exposure

seeing as have a uwriter target for the non-exposed symbols case.

As a motivating side-effect stops crashing on exit on an optimized build with
my x86_64 fedora 20 gcc 4.8.3 build

Change-Id: If0240ee02d4899e488b12d2d8d5f9b6bf7cca37d