Added exchange_token() plus tests.