Change refresh token expiry

no issue
- acquiring a new access token using a refresh token sets the
expiration time of the refresh token to now + 24 hrs.
- moved all occurrences of ONE_HOUR, ONE_DAY and ONE_YEAR to
`core/server/utils`
Merge pull request #3430 from sebgie/refresh-token-expiry

Change refresh token expiry