Lots of changes

When tests need the filesystem, they will now use vfsStream. Renamed
parts of the session library. Added exception classes. Adding native
session manager.