common/config: config filter function [GH-521]

Fixes #521

Use a utility function to strip sensitive information from Config structs before logging.