Wagtaildocs tests

This pull request adds some tests to wagtaildocs. These tests currently have 78% coverage.

Things that are tested:
 - Document Permissions
 - Admin Views (not testing POST requests yet though)
 - Chooser views

The frontend serve view is not yet tested.