If you don't want to use starsan, you can just use water. Solves the foam issue then. Obviously boiling water would be ideal, as dissolved oxygen is zero near 100°, but safety means this isn't worth it. It doesn't stay in the keg long enough to diffuse out into the headspace.
On the purging cycles, this table is useful for example when dry hopping, prior to a closed transfer. 5 purges at 30psi is plenty, and will use about 20l or around 40g of CO2. The same as purging an entire keg with the starsan method.
The 0.5ppm target for breweries is dissolved O2. This does not translate to the same value in the table as oxygen is rather insoluble indeed.
E.g 210000 ppm (air) in the headspace will lead to 8ppm in the beer at 25°C. or 12ppm at 5°c
To get to the ideal 0.1ppm you therefore need to get O2 in the headspace to 210000/120 =1750. (Which tallies very nicely with the 5 purges at 30psi rule of thumb :) )