Poor man's implementation of all_invoices

It works, but barely. This needs to be tested, and cleaned up a boat
load before it sees the light of day! :hurtrealbad: