Include `snippet_id` in template context for snippet templates.

This enables snippet code to include unique IDs in things like element
IDs, making it easier to have snippet templates only affect their 
individual snippets and not other snippets using the same template.

Part of the work for bug 926634.
Do not rely on queryset order for ClientMatchRuleQueryset test.