(WIP) converting the code to use Popen
added some debugging code
popen now calls and shutsdown the three main processes correctly. mongo does not work
added a note, removed an unused function