Bio-epoxy resins with inherent flame retardancy