Add a build profile for Hadoop 2.

* The default profile continues to use Hadoop 1.
* Enforce common versions of dependencies by using Maven properties.
* Use Hadoop version 1.0.1 since that is the first release to include
hadoop-client.
* Create JARs with no classifier for Hadoop 2, and a hadoop2 classifier
for Hadoop 2.