Fixed permissions assignment after user creation.
Encapsulated the permissions checking in two reusable
functions: check_permissions and check_available_permissions.
Moved ASSIGNED_PERMISSION to settings.USERENA_ASSIGNED_PERMISSIONS.
Updated tests, documentation, managers accordingly.