Temporary commit:
Validation for unique-ness added (dataElementService + editCtrl)
validation errors are cleared before re-validated
If data is a duplicate(name), a confirm-box appears and lets the user decide if they want to cancel or go back to form.
Promises, promises, promises; They are everywhere... ugly, but it works, and I'm not sure it's possible to do it any other way because of the async requests that might happen.
ID should now be set correctly when adding elements
Not adding element if the element is a duplicate (Stupid api tricked me)
Created should be complete? Not sure, but as far as I can tell, it is :)
Comments will come later! :)