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

The stylistic benefit of this shows up in the subsequent work related to Bower support in a different branch.
Merge pull request #1476 from ussuri/addl-rework-in-templates.dart

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