Add extensions

Adds InvoiceRepository.pending, CustomerRepository.most_items, CustomerRepository.most_revenue, and Customer #pending_invoices.