Added a way to check the creds to see if its is an object or a location and handles it accordingly.

Consider defining `aws` with it's initialization.  I.e.: `var aws = credsValidity(opts.creds)`.