Add an option to disable dogstatsd

Fix #927