Algebraic Structures Derived from Foams