Add smarter deb cleanup script to freight

This is *way* more complicated now - @domcleal I'd appreciate a thorough review on this in case I missed anything.