Produce CSV from analysis page.
Added first simple chart.
Allow only one code temporarily.

Pie chart automatically picks up selected code.
Move D3 chart code to an external script.