Import a stripped down version of util.c. Adjust dkim signer following
the import of helper functions.
Merge pull request #3 from snimmagadda/util

Import a stripped down version of util.c.