uploadAllFiles method now return a jQuery promise. Fixes #5