Added methods to bind a Blade or Cargo to random port. Further unit test infrastructure cleanup.