Move importwallet and dumpwallet implementations to walletdb.cpp;
Move timestamps encoding and decoding functions to util.cpp.