Require should so tests can be run using mocha
Bind handler if it is a function

- This will be properly bound if it is used in the handler
- Not supported for the case where the handler is an object which maps
  format name strings to handler functions
Merge remote-tracking branch 'sgronblo/bind_handler'