Refactoring UI/Controllers/Tests for detectors/policies.

Adding a new detector/policy works perfect, but Editing an existing one
is not working yet.
Caching the configuration for detectors and policies on RequisitionsService.

This was required in order to call it directly from the policy directive
reducing the network overhead, besides the fact that the configuration
of policies and detectors is fixed.