make a promise

Conflicts:
	test/spec/SpecRunnerUtils.js
fix issues with removeTempDirectory() in unit tests
fix indentation
Merge pull request #5170 from adobe/jasonsanjose/issue-5109

Fix remoteTempDirectory() in unit tests