SES-1716 : Add superclasses for boolean and tuple query handlers
SES-1716 : Convert TupleQueryResultHandlerException to new superclass

This makes it possible to abstract the main QueryResultWriter methods
back up from TupleQueryResultWriter and BooleanQueryResultWriter