GenaiX: Foundational Structure for Generative AI Apps