Merge pull request #7 from sheeprine/master

Corrected request generation code
Added session loading

You can now load a session from a previous connection.
A function is here to check that the session is still valid.