Create documents.py

Extracting the `NewDocument` handler from the old `handler.py` module...