update from live environment

Now supports multiple login attempts, which cancels the client after 5 attempts.. Also supports sandbox and a more robust login method and auth key saving.