token refresh

implemented "smart" token refresh before every call to awaitable library
functions