Thread safety and debugging options

* thread_safe constructor argument enables _stats
  single-threaded access to support use of single instance by
  multiple threads
* debug constructor argument enables stdout printing of every
  metric sent to statsd
* host may be None in which case network access is turned off