Rewrite of postgresql module to allow invocation by defined types

It now also support defining custom queries.

As a bonus, this rewrite is backward compatible (!)
Do any of you have a better suggestion for the file name ? "${collectd::params::plugin_conf_dir}/postgresql.conf" is unusable because of the legacy-cleaning code in plugin.pp (ping @blkperl )