j/cursor.ijs: decoupled editor from underlying data structure
added immex, fg, reset, rearranged lines