build improvements: replace js variables with grunt templates, include version in exported xpi files.

test