Update server.js

Use node's util.inherits for prototypal inheritance
Merge pull request #6 from skeggse/patch-1

Update server.js