Add postgresql utilities

Adds some methods to help postgresql:
* be performant, by removing unused varchar_pattern_ops indexes for UUID fields
* enforce current-version referential integrity using partial unique indexs

These can be called from the post_migrate signal handler of any applications that use Versionable models.