Add permissions for controller actions

The permission  method takes two hashes as argument, where the second hash is where the :resource_type should go to:

```
 permission :view_tasks, {:'foreman_tasks/tasks' => [:auto_complete_search, :sub_tasks, :index, :show]}, resource_type => 'ForemanTasks::Task'
```

Otherwise, the `resource_type` option is just ignored