libs/ipkg: add callback based list_all() and list_installed()