move servlet consumer and subclasses up

they were static and can encapsulate some logic from handleQuery
return of query call and metrics endpoint

basic functionality is present although error reporting is not as
helpful as of yet, compression has been temporarily disabled, and
some improvements can be made on handler integration and write
performance