Implemented thread waiting

We needed to wait for the broadcastmanager thread to finish before we
send requests out to phones.
random commit

made me commit