Add multipart handling for emails
Change the api socket to be in /tmp instead of /var