Provide better defaults when linking client, and managing credentials.

Don't require the user to provide all the functions when linking client.  Default using nops.

In the credentials, allow null to signify not to use a cache.