Moved global template vars from templates.dart to spark.dart

TBR: @umop

The stylistic benefit of this shows up in the subsequent work related to Bower support in a different branch.