Add logging. Fix opening playbooks for editing.

Closes #4