Added logging, advanced MesosUtils, code cleanup.