refactor authz logic to be part of AGHttpClient
checks for token existance
care for multiple registrations