Made handler function configurable. Added a mini-README in server.js.