Added API resource for invoice and invoicelist, refactored the invoice API endpoint.
Mock invoice payments by marking them as paid.