I have often wondered if it would be possible to come up with a simple device that could cover a house with foam in a few minutes. I’m sure there’d be a market.
They already make them..
see here for only one example:
http://www.consumerfireproducts.com/portable-foam-systems.html