Support for adding YAML defined policies to the catalog.

OSGi support included.
Unify entity and policy detail views.