Fix sending sampled metrics.

This commit changes the behavior when using sampling. Before every metric would
be send and the sample rate was appended. With this commit only (sample
rate * 100) percent of packets actually get send, thus reducing load on the
statsd server.

Additionally I added phpunit to composer (I don't have it installed globally) and updated gitignore.