Angularjs directive that provide crud function to an array of objects.