Pledges affect account balance

Includes some clean up of windsor resolution.