cleanup-helpers

extract partials instead of inline templates.

### Changelog
* add has_pref? helper to check for non-empty preference value

TODO:
* [ ] revert config to use master branch files before release