[add #181] Preserves the cursor position between files

The cursor position is saved before switching between files when the
user returns to the file the cursor position is restored.

It uses the same technique as MobWrite. The text which was around the cursor is
used to restore the position.
Merge pull request #184 from tdurieux/restore-cursor-position

[add #181] Preserves the cursor position between files