add initial d3 streamgraph code and reference in view and main.js
properly bind Chat functions to Chat 'this'