dumpsolv: add json output

I needed to import the data produced by `dumpsolv` into a db to perform some analysis. Hence I patched `dumpsolv` to add json output format.

This change causes libsolv to depend on [jansson](http://www.digip.org/jansson/). If that's a problem I can change my patch to enable json output only when this library is found.