[tempauth] update token if its value changes or expires

In current codes, tempauth token will be updated only when it expires. In
token's lifetime, any changes in tempauth config file doesn't update token,
which means if you update your config file and restart proxy server, the
role in runtime might not change. So a good fix is updating token when
it changes or expires.

fixes bug #1201678

Change-Id: Ieb080e87268e16d0a2e5896431aa41fcedc7a900
Remove dupe account_audit when reporting stats

- Remove duplicate account_audit call that happened once an hour when stats
where reported.
- And fixed a flake8 complaint

Change-Id: Ide686c475f8648664e9cffdd696629cf6ba9f75c
Add Apache 2.0 licensing headers

Change-Id: I38fae2a78b2369a897b7f298c1aead9b963bf7c9
Merge "Add Apache 2.0 licensing headers"
fix swift i18n

Change-Id: I53cea28a6d7593a1b308dbcf77dddf7f40d76cb2
Merge "Remove dupe account_audit when reporting stats"
Merge "fix swift i18n"
Merge "[tempauth] update token if its value changes or expires"