docs: function buildFunction (router, handler, filter) {//{{{
          return function (input) {
              return new router.Promise(function(resolve, reject){
                  handler.call(this, input)
                      .then(function(result){
                          resolve(filter(result));
                      })
                      .catch(reject)
                  ;
              });
          };
      }