Install mesos and prepare master/slave scripts.