Updated debugging and logging code.
Updated debugging and logging code.

Switched from console.log to statsd configured logger.
Debug metrics struct and ES payload separately.

markkimsal/statsd-elasticsearch-backend,markkimsal/statsd-elasticsearch-backend,actmd/statsd-elasticsearch-backend,satanovskyj/statsd-elasticsearch-backend,actmd/statsd-elasticsearch-backend,satanovskyj/statsd-elasticsearch-backend