Refactored buttons controller to an attribute on json-editor
- Can now specify controller per json-editor element. its dynamically created and injected the directive's scope.