Set 'test-mode' in `grind deploy` non-destructively

Fixes editor themes and bower-related settings lost in the deploy process.
Merge pull request #3253 from ussuri/non-destructive-test-mode-setting-in-grind

Set 'test-mode' in `grind deploy` non-destructively