auth: add AppName field to the Token struct
auth: save AppName in the database on CreateApplicationToken
auth: make test more reliable