Changed sesssions, added to IO

Removed native session classes.
Added memory storage.
Added basic session manager.
Improved session manager test.