Implement getCursorIndex and setCursorIndex for the sandbox.
Merge pull request #126 from robru/cursor_index

Implement getCursorIndex and setCursorIndex for the sandbox.