Add access control to document model and view
The access checks are not yet written, but at least the model is
stable from now on.
Also converted the document view to dynaform while at it.
Patch by: Sverre Rabbelier
#!/usr/bin/env python
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()