Check credentials types before using them.

We previously used methods from oauth2client.client.GoogleCredentials on an
object that might only be an instance of oauth2client.client.Credentials.
Merge pull request #12 from craigcitro/interface

Check credentials types before using them.