Add ability to configure a digest forwarding server. Thanks to gryphius for the patch.
Style fixes, and adapt test to the new forwarder functionality.