Implementing code-exchanging for set of tokens

Also, the instantiation of a User object from said credentials.

As I'm not using the gem with rails, thought this might be useful for other people. I tried to document as well, but maybe the language is not quite correct.