Add suppot for importing upstream users

Initially, support this for invoices and for managers of sponsorships,
which are the most likely usecases for it. More usecases can be added
in the future as they are found.