More control over embedding format

Allow custom embedding formats, specified as Mustache templates.

Closes #5