Put splitOnInflection and getLoop into bezier.js
Fix small issues with splitOnInflection (now splitOnLineIntersection)
Readability changes