Adjust the pkgdb2 module to the changes in the API
Adjust pkgdb2-cli to use the pkgdb2 module properly
Add tests for the methods requiring authentications

- Make sure these methods work every time
- Adjust the test to the changes in the pkgdb2 module