Refactored mesos-tail to use helpers from cli.py.

From: Shingo Omura <everpeace@gmail.com>
Review: https://reviews.apache.org/r/15336