- Make sure that the password is always bytes when passed into the principal
  registry.

- Fix deprecation warnings.
Preparing release 4.0.0a2
Back to development: 4.0.0a3