Avoid race conditions when launching tasks

Order of task operations is set / Removed unnecessary sleep command
fix typo
add more descriptive variable name
node name should be followed by executor name in the tasked
Minor clean up
Merge pull request #29 from mesosphere/refactor-classes

Avoid race conditions when launching tasks