add ability to run mesos as master and slave

This commit enables a setting that sets master and slave on a node. When
master-slave is set, the node runs both as master and slave.