Adds sercurity to all batch models and controllers. Adds test for model level security.