First pass at daemonizing rpcwallet

This commit is larger than I'd like.  Among other things it separates
the daemonizer code into its own static library.  rpcwallet now
daemonizes (tested on Arch), but there are some things to sort out with
wallet and log paths.  There is no stop command yet.