Refactored web server process management
Refactored web server process management

Also made sure that the child process is killed before exiting in response to "terminate" action.

playasophy/wonderdome,playasophy/wonderdome,playasophy/wonderdome,playasophy/wonderdome