Make hadoop-lzo build cleanly against hadoop 2, and test cleanly against...

... hadoop 1 and hadoop 2.

- Removed the hadoop jar that was checked in.
- Upgraded the hadoop dependencies to 2.
- Removed unused imports.
- Introduced a compatibility util that handles the relevant API incompatibilities.
- Added test as a dependency to package.