analyzeQuestion(1) accepts Question objects, handlers modified accordingly
chi calculated through a separate function, to improve modularity
calculateKhiSquare(4) now accepts Question
Calculating a,b,(c) on server side
Removed now unnecessary UI and js functions
Optimisation done as suggested by arthasdk, only one db call instead of n^2
Merge pull request #5 from spikey360/develop

Develop