added invoice and payment dao to allow every app to provide their custom way to manage invoices and payments
merged from upstream