Add PermissionsMeta metaclass for CBVs

It allows specifying a dict of permissions on a class-based view as an
alternative to decorating view methods with registry.require.

PermissionsRegistry has a new property, metaclass, which returns a
PermissionsMeta submetaclass configured to use the registry instance
it's called on.