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.
Merge pull request #8 from sheeprine/master

Added session loading