Add description of the various stages

As I am working on a proof of concept for the library, I did some work to make it easier to understand for new users. Part of it was to redact a tutorial that describe the underlying stages of a LWM2M client, so I added some helpfull comments directly in the code as it is purposed to be a reference implementation.