Restore form attributes after successful upload in io-upload-iframe. Fixes #2532899

Hey guys,

Please review the proposed fix.
If for some reason it is not safe to keep the original form attributes on the current instance, can you think for a better way to provide them to "end" method?
Basically, they were created in "_upload" method, but we need to provide them from other places too.

Thanks,

<!---
@huboard:{"order":38.375}
-->