refactored self.data_adapter
Changing function names to be more consistent with convention
Refactor data_template function
Making bar and line graph work after refactoring chart
Got rid of male, female redundant data
Removed unnecessary axis info from pie chart
Made changes in pie_template
Refactored analytic helper and enabled pie charts
TODO comments updated
Update chart.rb

Added some comments
Updated comments in analytic controller
Updated comments in chart helper
Added comments for analytic_controller
Merge branch 'rails4' of https://github.com/expertiza/expertiza into rails4

Merging to get the latest changes in main repository
Chart data moved to YAML files
Moved chart to chart_helper based on Andrew's comment. Refer to pull 439
Merge remote-tracking branch 'E1455/rails4' into rails4