Merge pull request #55 from COSI236TA/wenbin

Wenbin
Fixed chart size bug
Merge pull request #56 from COSI236TA/integrate

Fixed chart size bug
Fixed ajax for loop redundancy
Merge pull request #57 from COSI236TA/integrate

Fixed ajax for loop redundancy
Change homepage, added javascript for chart, added comments
Change homepage, added javascript for chart, added comments
Merge pull request #58 from COSI236TA/integrate

Integrate
add gem sucker punch
background process works properly. need to refine RuleHistory
refine RuleHistory such that there would not be too many redundant entries
change the update interval to 300 seconds