Simple Directive to perform progressive autosave on any form in AngularJS