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