make action dynamic by using ng-attr
removed scope:true from ng-upload

Removed ng-upload directives scope:true because it hides the form object from the parent controller.
don’t submit form if invalid
don’t submit form if pristine
bind iframe load after submit to prevent uploadEnd from being triggered by initial iframe load
Merge pull request #92 from peerb/master

make action dynamic by using ng-attr