Allow use of snippet_id in template variables.

Now the snippet ID can be included in either a snippet template or the
template data stored on a snippet. Mostly useful for Raw code snippets
that still want to access the snippet ID.