Switch to compact protocol for catalog statestore topic

This seems like an easy win: the compact binary Thrift protocol saves
45% of the size of our minicluster's catalog topic compared to not using
it. We should expect to see similar savings on larger catalogs. This
will buy us some headroom with the largest catalogs / clusters, as the
statestore has less data to transmit.

Start-up time is unchanged, according to my rough measurements.

Change-Id: Idd43c9782d158251307314cca49b4b00f6a82531
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/3931
Reviewed-by: Nong Li <nong@cloudera.com>
Tested-by: jenkins
Fix code coverage build

We were testing casting 1/0 (inf) to integer types, which in C++ is
undefined. When codegen optimizations are enabled, this causes the
codegen'd cast to produce a different result than the non-codegen'd
cast. This patch removes these tests, i.e. Impala's behavior is
undefined as well. I'm open to other suggestions as to what we should
do in this case.

Change-Id: Ifdc11b5ec7c57e7c977ef9c41feb6db168c1a1d2
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/3891
Reviewed-by: Nong Li <nong@cloudera.com>
Tested-by: jenkins
More PHJ fixes.

Change-Id: I1330da5ff65f1b69a7db1532c102f2af885f1a3a
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/3946
Reviewed-by: Nong Li <nong@cloudera.com>
Tested-by: jenkins