Add Jinja2 filter |bool : return boolean interpretation of the value

'yes', 'on', '1', 'true', insensitively, and 1 are true,
 everything else is false
Merge pull request #3418 from stoned/filter-bool

Add Jinja2 filter |bool : return boolean interpretation of the value