Allow roles to be synchronized by ID as well as name.
Allow CategoryModel->Save() to take a Permissions key in the proper form for permissions.
Fix notice when creating a category.