delete all splits of a transaction

When delete an account, delete all splits in related transactions.

In response to #242 .
return before endTransaction() ?