Fixed a bug with download / external link tracking (JavaScript errors when download / external link tracking was disabled) and a redundant registration of click handlers; Introduced a substitution template string for download link tracking; Fixed some min