Updated the "High Availability" doc to reflect the master detector refactoring in Mesos 0.16.0.

Review: https://reviews.apache.org/r/18155
Modifed getHostName to use the correct error code.

Review: https://reviews.apache.org/r/20055