Pub/Sub backed lifecycle management for simple javascript unit testing.