docs: function registerCookieJar(server) {
          var deferred = Q.defer();
  
          server.register({
              register: require('yar'),
              options: {
                  cache: {
                      expiresIn:  cookieConfig.ttl
                  },
                  cookieOptions: {
                      clearInvalid: true,
                      password:   cookieConfig.password,
                      domain:     cookieConfig.domain,
                      isSecure:   cookieConfig.isSecure
                  }
              }
          }, function (err) {
              err ? deferred.reject(err) : deferred.resolve(err);
          });
  
          return deferred.promise;
      }