This commit is a step to split the lnwallet package. It puts the Input interface and implementations in a separate package along with all their dependencies from lnwallet.
This commit isolates the invoice registry in a separate package. It is a preparation for the creation of an invoices sub server.