Some template static_url tweaks

- don't try to include version in static_urls that don't point to files
- use full static_urls (with extension) for backbone and underscore, so version can be computed

closes #5141
Merge pull request #5147 from minrk/static-url-version

Some template URL changes