Fixed angular module when used into a custom directive. Do not rely on the $$phase variable anymore.
Merge pull request #2463 from gaelduplessix/master

Fixed angular module when used into a custom directive.
Updated version number.
Fixed cross-domain iFrame Transport settings.
Added an updated jQuery UI example implementation.
Only include the XDomainRequest Transport for IE 8 and IE 9.
Reject the send API call if the given fileInput has not selected files. Fixes #2486.
Respect the prependFiles option in the done and fail callbacks. Fixes #2493
Also check for maxNumberOfFiles if current numer is 0. Closes #2501.