Refactored directives to be attributes
refactored directives to be attributes

Also "resource" is now "node"
and "Connection" is now "edge"