Implement basic line graph, wide-ranging CoffeScript cleanup