jsgui: Attach policies to existing entities

* Adds generic modal view to brooklyn.view.js to simplify handling of modal lifecycles
* Adds view for input of config key names/values
* Exposes `PolicyApi.addPolicy`.