moved emailer module to use the new globals framework
make globals load automatic and change test to verify this