Allowed launching subprocesses with flags.

Review: https://reviews.apache.org/r/22749
Updated mesos to use the new Subprocess interface with flags.

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