Added Session base class
Corrected Session class

Also added Lua support for session class