A unitary model for structure functions and diffractive production at small x