Implement clear_tips_giving

Method needed as part of account closing, #2412.

Starting another PR chain of wiring needed for #2412. Will rebase over there once these are in master.