Allow randomization of file names

I added the option ``randomize_file_name`` (defaults to ``false``) which if set to ``true`` will change the file name of attachments with a random string while preserving the original file extension.