Directives and services for integrating Angular with jsPlumb