Implement client.getPackages(). Closes #1.