SMW\ApiResultPrinter

Use SMW\ResultPrinter class (I3c056c5b) and minimize code repetition as
a base class

## Depends on
+ Change-Id I3c056c5b

## Used by
+ Change-Id Iaadba4777f7

## Note
SMWOutputs is still needed because resources are stored
as static property which is needed to ensure that they are loaded
everytime the page is called $this->getContext()->getOutput() will
loose those information (see bug 43205)


Change-Id: I5032eca046b25de16998322fb51d27c01c1acc6c