Fixes #3237: Major whitespace/variables change: convert all leading spac...

...es to tabs, cleanup extra whitespace...

Reindent all promise types
Reindent all class expressions
Reindent all promisers
Reindent all attributes
Use ${} instead of $() for all simple variables references