repair bad tx's in repairwallet

add code to fixspentcoins to check for coins that are not final and not
confirmed, and allow them to be deleted by repairwallet.

This commit also changes IsConfirmed() to not automatically assume that
if it is in our db then it is confirmed.