cleanup and updated asynch processor to be module
moved entity and send functinoality into a module and updated surrounding code
adding unit tests and refactoring a bunch of stuff to support testing