Remove global creds var
Remove dead code path.

    if (foo === undefined) will always throw, so clearly this isn't doing
    what the original author intended.
Remove unneeded requires.
Moved IAM cred fetch to separate npm package