Adding test to check if view permissions have been created.
Moving create_extra_permissions to the more appropriate permissions module.
Merge pull request #158 from gregmuellegger/refactor-create-extra-permissions

Is the types.create_extra_permissions function deprecated?
Merge upstream/master