Did you add an algacide? Sometimes algacides can cause foaming, some also add copper.. Have you had any trouble with minerals in your water before? It sounds like you may have a little bit of metals that the change in chemicals is reacting to. It may just disappear as the chlorine breaks it down. You probably don't have any calcium in the water, which you don't need with a vinyl liner pool. Keep us informed