Created Session class, which handles local storage.