add a set_credentials method on the session class fixes #13

Provides a fix to the issue raised in #13