add documents module from litewrite master
adapt documents module to 0.10 API (first attempt)