Extract handlers for ParserOutput hooks

This factors the handlers for ParserOutput related hooks
out of the general WikibaseCLientHooks class into a separate class
and makes them testable.

Change-Id: I5a76107fb9e02c94d75205738858a57b1175ac56
Merge "Extract handlers for ParserOutput hooks"