YARN-913 review of DistributedShell AM; minor cleanup
YARN-913 distributed shell code review and test cleanup
YARN-913 fix whitespace & diffs against trunk