Let's change this handler so it's an actual handler, remove `bin` as the first arg, and remove `renderFn` - and use `req.bin` and detect using:

``js
_this.emit('created', bin);
if (req.ajax || req.api) {
  res.send(req.bin);
} else {
  _this.renderCreated(req, res); // why does renderCreated take bin as an arg?
}
```