Headers

added some Return-Path header handling.  Some of the Return-Path handling likely needs to be handled in core (see Issue 423). This is probably as good as can be done in a plugin.

also refactored a little. Moved config setting processing into methods where used.