BISERVER-10120 A lot of samples in bidevelopers are broken

Email configuration is now using IEmailService instead of going directly through cached system settings.  This is how the Emailer for scheduling works in 5.0 and EmailComponent was never updated to use that.  

Cleaned up awful use of dom4j and removed all compiler warnings.