add is_module_loaded function
move several functions to util
move some code to util
initial commit
move around code to avoid two processes trying to listen to the same port