Ajax upload with progress bar and proper basic authentication support.