Use consitent names for *_cflags and *_ldflags.

mod_ldflags is better than eap_cflags.  It's more consistent
(but less cutesy), and allows for more files to be copied
from one module to another without changes

$ perl -p -i -e 's/[a-z_]+_ldflags/mod_ldflags/g;s/[a-z_]+_cflags/mod_cflags/g;' $(find src/ -name "configure.in" -print)I
Rename functions
Re-name all of the module functions.

Instead of eap_foo, we now have mod_foo.
The core functions module_foo have been renamed to process_foo

Change via Perl:

perl -p -i -e 's/([^a-z_])module_(instantiate|detach|authorize|authenticate|post_auth|accounting|pre_acct|checksimul|pre_proxy|post_proxy|recv_coa|send_coa)([^a-z_])/${1}4321_${2}${3}/g' $(find src/ -name "*.[ch]" -print)

perl -p -i -e 's/[a-z_]+_(instantiate|detach|authorize|authenticate|post_auth|accounting|pre_acct|checksimul|pre_proxy|post_proxy|recv_coa|send_coa)([^a-z_]?)/mod_$1$2/g;' $(find src/modules -name "*.[ch]" -print)

perl -p -i -e 's/([^a-z_])4321_([a-z_]+[^a-z_])/${1}process_${2}/g' $(find src/ -name "*.[ch]" -print)

With some manual editing of Perl, Python, and Ruby