Added implementation for collectd v4 (tested with 4.10.x). Refactored Makefile to support both versions.
Added more resilient test for COLLECTD_OLD being set; added documentation on the new variables.