Ensures that binary files are uploaded as attachments

Adds proxy server support so tools like mitmproxy can be
used