Added a class for manage the cache.
Added a class for manage the session.
Corrections in MSession class.