Updated plupload to newer version and finished frontend part
Using WP time constants to denote time period
Refactored `if` condition
Using WP media uploader to add attachments rather accessing plupload directly
Removed check for events_registered as it is not required
Corrected phpmailer SMTPSecure parameter
Merge pull request #91 from VarunAgw/email-handling

Add support for uploading files and attaching them to threads.