Refactoring to a command pattern.

- Refresh, Exchange, GetClientToken extracted