Implement invoicing

## NOT READY TO BE MERGED YET

(this pull request was created wrongly at https://github.com/victorlin/billy/pull/2)