cleanup method
reverse sort $extra_headers so plugin/theme uri

are parsed, then branch, then access token. Otherwise access token might be skipped as branch/theme must be first.
IDE reports unused as private method
Save access tokens or passwords that are in

headers to options.