Fixes for methods using an old interface to _post

Methods are:
- create_invoice
- post_invoice
- post_invoiceitem

Also some whitespace trimming from my judicious editor