Pass locals into custom response functions

Especially handy for responding with JSON:

    pagesController.main = function() {
      var self = this;
      this.title = 'Locomotive';
      this.respond({
        html: true,
        json: function(locals) { self.res.json(locals); } // new magic
      })
    };