Updated the messenger to not be a CPU hog. It now uses AutoResetEvent.

Signed-off-by: Amrykid <amrykid@gmail.com>