Track the number of outstanding write attempts. Nothing actually uses this functionality yet.
Made "wait for things to finish" method more comprehensive. Added tests.
Moved "wait for finish" logic out of the connection pool and into the PushManager.