parse appdata in solv example

Also support a '-d' option to increase the debug level.
Extend product link support to patterns/applications

Also implement own product link code, in case the
nscallback does not return a buddy.
Includes two bugfix: the ruleinfo introspection now
know about links, and there's an extra link pass to
pick up linked packages.