Fixing session cleanup
Support for private key authentication

Fixes #5
Add private key reference, test case for private key auth

private key should be named privatekey.pem and is listed in .gitignore