Merging HDFS-234 from branch-2. Integration with BookKeeper logging system. Contributed by Ivan Kelly.