(Finally) eliminate CustomStack entity and all related code in a sea of red lines. (Rest of changeset in Mercurial)

Auditors: eater