Define template attributes for all examples
Select template correctly when partial criteria are given

When only 'group' or 'dist' are specified in the incoming
payload, we need to ensure that a sane template is chosen.