Add support for custom attributes.

This provides a solution to collectd/collectd#457