Upgrade PasswordSafe backend code to most recent version

The current code is based on 3.37, upstream is currently at 3.66.1.

This will allow adding new features like TOTP and support for the v4 database format.