Use the JSON interface for official packages

Unfortunately it doesn't support querying package groups yet
Addresses #129