KIJIMR-171. Refactor build artifacts for multiple Hadoop distributions.

Adds code review comments.