Wallet filename option

Port over https://github.com/namecoin/namecoin/pull/121 from Namecoin.  Please test, also that backupwallet works.  (For my tests, everything seemed fine, though.)