updated at 5:15 PM 7/22/2014
add functions to check and kill process on the virtual machine.
re-organize the web server function