Dump db

A pending improvement:
 - fork softhsm-dump into softhsm-dump-file and softhsm-dump-db

 - add DB v2 support including for array attributes.

Note this is almost independent.