Allow snap-0.13 and port example to snap-0.13

Fixes #11