Token management and Application Registration