Anomalies and Wess-Zumino terms in an extended, regularized field-antifield formalism