Integrate smooth.js interpolation lib and apply to lines

Adds interpolation algorithm to line drawing and a bit of debugging code for draw commands (shapechange event)