Added functionality to upload multiple files when creating a lead, and
automatically detect the filetype of the file when saving the newly
created lead.