Update constraintcore.lua

The rope constraint functions were useless without the option to make the rope rigid.
Added an elastic constraint function because it was missing and it's one of the only things people use constraint core for.