Added basic (not persisted) hero sessions
Added hero logout functionality when window is closed
Added some comments;