Added role functionality and the model is_admin test.