Add `{read,write}-invoice`
Implement recording payments