Snippet library: added an optional id to snippets.

Uses that id instead of the original text in the profession item list.