code: synchronized String registerHandle(AbstractAppHandle handle) {
      String secret = createSecret();
      secretToPendingApps.put(secret, handle);
      return secret;
    }
docs: Registers a handle with the server, and returns the secret the child app needs to connect
  back.