Various simplifications/Cleanups

- Use Codecs for base64
- Remove dependency on `openssl` (use GnuTLS instead)
- Remove debug messages