enable switching stats source from carbon's own loop to metrics data, fixes #417
Merge pull request #435 from prymitive/carbon_use_metrics

enable switching stats source from carbon's own loop to metrics data
port the carbon metric feature to latest api
fixed #436
correctly support python2.4