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.