Travis configuration fixes + other minor fixes

All tests and examples now work on Travis using:
* Hadoop 1.* and 2.* (up to 2.4.1) + native hdfs backend
* Hadoop 1.2.1 and 2.2.0 + jpype hdfs backend