[1407] WIP - Remove resourcegroups.

Contains a migration to remove the resourcegroups and have the resource
have a reference direct to it's package, this removes a lot of joins.

Drop constraint on resource_group_revision that travis complains about (but local install does not)