fix stats collection failing causing DEA to die

* extract stats collection into its own class (StatsCollector)
* introduce Container class which provides Warden container
  communication