CLUSTER-66. Separate hosts file write into a separate script that can be executed as root.

issue: https://jira.kiji.org/browse/CLUSTER-66
review: https://review.kiji.org/r/2250