Datadog tags

More robust handling of tagging of metrics. Added some docs, some type testing and some forced string    conversions to make it more robust.

please have a look @airhorns