repo_appdata: add support for keywords and pkgname, simplify lang handling
also look at the pkgname when searching for the application link