Updated for the API improvements for Keep Alive and Logout
Added Non-interactive auth

Added non-interactive auth and bug fixed the Keepalive and Logout.