Prepare to merge with StatTest(MrMihap)

Not working version, containing incorrect CLoopController.cs,
CPackDetector.cs, CStimDetectShift.cs and CStimDetectShift.cs from
branch StatTest(MrMihap).
Just for merge.