Add a guide to writing specifications with promises.

Closes #21.