Convert dojo/promise/* tests to intern.
Style cleanups and fix use of ES5 in unit tests