first curve joint experiments

additional improvements include debug rendering for world objects, logging
fixed bug in curve tile what would cause wrong nearest point direction to be computed