Added is_published field to DocumentTitle.

Added schemamigration to preserve public state of documents on title.
Removed is_published field from Document.
Updated factories
Fixed queries and tests.