Use hostname instead of IP for redirection.

In the Web UI, the redirection does not work for hosts where the local
interface address is not publicly accessible.  For example, with EC2 the
redirection will not work.

This change writes the Master's hostname into ZooKeeper, thereby
allowing the redirection to work with private IP addresses.

Review: https://reviews.apache.org/r/11975/
Added running task count to state info.

Review: https://reviews.apache.org/r/12922
Refactored JobTracker into fixed/variable policies.

Review: https://reviews.apache.org/r/12924
Fixed bug where active TaskTrackers are killed.

Sometimes, TaskTrackers which are active will fail to get marked as such
because the scheduler is either a) too busy or b) has not received any
offers in a while.  This resolves the problem of TaskTrackers getting
killed by the launch timeout even though they are alive and well.

Furthermore, some parts of the scheduler don't need to be completely
synchronized because they don't modify shared data.
Allowed JobTracker to use unknown trackers.

The Mesos scheduler shouldn't discard task assignments for task trackers
that it doesn't know about.