rename irep_n to irep_idx_start and add irep_idx_end
Support AP_DECLARE_MODULE
Replaced ap_log_perror to ap_log_error