Added Persistent flag for queries; added cache clean up after migrate
fixes for fct; cleanup
fixes for fet, fct and pie charts
merged all stats versions
Moving the php stats code to the new dnet40 branch