Sharedlib

Michael, these are the changes to move the Berkeley DB KVS test code into a shared library.

Can you please review these?

In particular, I'm hoping there's something better we could do in configure.ac.in that wouldn't require us to all install Berkeley DB into /usr/local, although I guess that isn't an awful thing?