#143 - implemented security for document level with doc and unit tests
#143 - implemented functional tests for document level security
Merge pull request #173 from searchisko/143

document level security - closes #143