Refactor tpch.sh script
Refactor tpch.sh script

This allows running the script locally, without running on Jenkins or
writing to a MySQL database. Environment variables are used to override
the default parameters, which are kept the same for now.

Also, only build the tpch1 target when running make, which should speed
up the build, and do various bits of cleanup.

I tested this locally using the following command line:
LINEITEM_TBL_PATH=lineitem.tbl KUDU_DATA_DIR=/tmp/kudutpch1-mpercy TPCH_NUM_QUERY_ITERS=2 ./src/kudu/scripts/tpch.sh

(I have a copy of the TPC-H lineitem.tbl file in my kudu source dir.)

Change-Id: I9907844de649561b69a89214011f829860afe7ad
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/3776
Tested-by: jenkins
Reviewed-by: Jean-Daniel Cryans <4bf4c125525b8623ac45dfd7774cbf531df19085@cloudera.com>

cloudera/kudu,helifu/kudu,InspurUSA/kudu,cloudera/kudu,andrwng/kudu,andrwng/kudu,andrwng/kudu,InspurUSA/kudu,cloudera/kudu,cloudera/kudu,InspurUSA/kudu,andrwng/kudu,EvilMcJerkface/kudu,InspurUSA/kudu,helifu/kudu,helifu/kudu,EvilMcJerkface/kudu,EvilMcJerkface/kudu,helifu/kudu,EvilMcJerkface/kudu,InspurUSA/kudu,EvilMcJerkface/kudu,andrwng/kudu,cloudera/kudu,InspurUSA/kudu,andrwng/kudu,helifu/kudu,andrwng/kudu,helifu/kudu,InspurUSA/kudu,InspurUSA/kudu,andrwng/kudu,cloudera/kudu,cloudera/kudu,EvilMcJerkface/kudu,cloudera/kudu,helifu/kudu,EvilMcJerkface/kudu,InspurUSA/kudu,andrwng/kudu,EvilMcJerkface/kudu,helifu/kudu,cloudera/kudu,EvilMcJerkface/kudu,helifu/kudu