Move some implementations of CWallet methods to wallet.cpp.