Add feature flip for template selection

Drop 'dist' and 'group' keys from config if :template_selection
feature is not enabled.

This corresponds to worker PR
https://github.com/travis-ci/travis-worker/pull/97.
Merge pull request #390 from travis-ci/ha-feature-template-selection

Add feature flip for template selection