Too Good to Go and Flashfood let users buy surplus food at deep discounts, saving money and reducing waste. Here's how they work.