Lending as a service