Refactor attachments upload for the new model.
Change file to unix file format
Merge pull request #502 from protich/issue/web_attachments

Web attachments