[IMP] Export some methods to lib/utils.lua file. Also move rope.lua
into.