trying to abstract the message function

added a TODO sort of thing
ugh...
added some simple registration in nedb. really need to clean this up
fixed some issues with the delegation between workers and the orchestration