added respawn function
renamed web.js to server.js, refactored a bit...more refactoring to do!