rename layouts to script.html and chart.html
major refactoring, moving common functions to utils.R
load plyr to fix bug in example 4
add getChartParams.R to gitignore
bum version