Rest services for EventDefinition and AttributeDefinition. 

Could use some refactoring, particularly around hateoas, but is a good
start.