Merge pull request #46 from Connexions/v2

Upgrade to compat triggers, document_controls and document_acl.
Update tests to use document_controls table in archive
Add sha1 column to files table and add trigger to populate it