Issue 64: add an audit trail

WIP

See #64