restore use of tornado static_url in templates

instead of jinja macro that doesn't write hashes

closes #4714