added ng-resource to index for use by services
added ng-resource to index for use by services
seperated from events.js into seperate file directives.js