Added support to generate document preview.

* Added local git repository to store anonymous documents.