Make template vars for paths available to styles and ensure that these are available to CAPTCHAs.
Merge branch 'master' into phpbb-com