Nice! much better than what I tried to do

I'm just having a 'little' problem with importing keys; the import fails, and even if I didn't remove the key, it is not listed anymore; but it seems to be there somehow...
It seems there was a bug: keys were not removed from disk, so re-adding them failed. This should be fixed now - could you test again?
Behaves the same no matter if I removed the key or not; AFAIS it shouldn't be in getaccountaddress if I did, and should be in getaddressesbyaccount if i didn't.
Am I understanding or doing something wrong here?
Well, removing addresses from accounts is just not supported yet. It may cause inccorrect account balances, but not invalid total balances
