Refactored logstash cgroup plugin to avoid passing around so many variab...

Looks good to me. Will look into thread/object pools.