Replace plotting with R with d3js

Things done:
- html is generated by default
- hide not applicable validation columns
- wrote linear regression by hand [1].
[1] http://engineering.sharethrough.com/blog/2012/09/12/simple-linear-regression-using-ruby/
- fix bug with consecutive click on different buttons