split code into independent micro services

also:
- cleanup the setImmediates since it looks like seneca is taking care of async stuff
- some var name changes