Either modernized or fixed the curvy rope controller. Added its bezier curve function to lib.math, so it can be reused.