Paths are now drawn as beziers on the client side. Also fixed the
width of paths so they are based on the defined thickness, and also
vary over their length. Fixes #40.