Idfix

Various changes and speed improvements. Added session cache subsystem.