Refactor resourceConf editing

Extracted to an own directive with an isolate scope.
Refactor plugin-conf directive

Use an isolated scope for it.