Now exiting portably; changed usage of alloc_mailer to allow for return codes.
Changing mailer function naming convention.

All mailer functions will now be prefixed with mailer_.