fix async bug in NetworkAgent where top-level url was not logged. cleanup live dev unit tests to use open() promise.