added black box testing mode

Enables testing HealthManager from an external process, primarily by
stubbing out time to allow the testing process to fast
forward HM's clock.

Also involves making async desired_state http requests synchronous in
the blackbox testing mode