Added reference counting for Rope nodes, fixed memory management bugs.
Added metadata to Rope nodes, starting with line counts.