collect internal stats and provide access to them via a debugging module

  add specs for recent additions adding high level stats, util,
  and inspection interfaces