added robust driver state management, moving things around to clean up.
Added constructor functions for some mesos protobuf objects.