It would be a real pain to have to run off a diesel generator. I would start by bugging the electric company, it would be nice if they just fixed the problem, probably not going to happen though. I might try a big AC motor hooked to another AC motor. This would be like an AC to AC motor-generator set. The momentary dips and brown outs would be somewhat suppressed by the inertia of the two large motors. A flywheel would help matters even more but then you need to pay attention to balancing and other safety issues.
Good Luck
Matt