Example snippets writer

This adds a script to generate the example snippets versus always
composing them by hand.

Change-Id: I5913d0b54e41f7e2606f39340fd867e1af3f20b9