Adding support for linking payments to an invoice

This just allows us to easily create a linked transaction line item, which is most useful for payments.