bug 768498: More progress on teamwork integration

* Add team ownership field to Document, with migration

* Add links to manage access policies on wiki documents

* Add wiki.view_document permission to model

* Helper to build URLs for managing Teamwork Policies on an object

* Add Teamwork methods to Document model to support hierarchical
  permission inheritance