Patch of your issue/2 views processing

Hello,

this pull request contains 3 commits on your views implementation:

- use of ctx._parent in scripts for views is now possible,
- use a way to do scripting on the views with script_view,
- correct deletion of documents in view mode.

Have a nice day.