HBASE-9165 [mapreduce] Modularize building dependency jars

 - Separate adding HBase and dependencies from adding other job
   dependencies, and expose it as a separate method that other
   projects can use (for PIG-3285).
 - Explicitly add hbase-server to the list of dependencies we ship
   with the job, for users who extend the classes we provide (see
   HBASE-9112).
 - Add integration test for addDependencyJars.
 - Code reuse for TestTableMapReduce.

Note this patch differs from the one applied to TRUNK/0.98 in that it omits
changes to TestTableMapReduceUtil which have not yet been backported from
HBASE-8534. This can be addressed when that patch is backported (HBASE-9484).


git-svn-id: https://svn.apache.org/repos/asf/hbase/branches/0.96@1542342 13f79535-47bb-0310-9956-ffa450edef68