Session Support

Added session support. Still needs ALOT of work on the index "if
Cluster". I know how to fix it logicaly, I just dont know the code.