Implement configurable metric namespace.

This is an implementation of pull request etsy/statsd/#137.
The only change is that configured prefixes are honored in legacy mode, too.