Fix open document

This pull request fixes issue #964 and gets rid of the document redirect. This should improve readability and maintainability, and simplifies the implementation. As part of this:

- some duplicate methods are deprecated
- the previous Document has been copied into the scel folder to avoid breaking EmacsDocument

It would be good if someone on scel could confirm that this branch still works.