simplified and cleaned up and fixed the association between posts, pages, and products, fixes dioscouri/amritasingh-f3#134