Upgraded examples to match latest API (moved from :config-auth to :credential-fn). Fixes #4 and #7.