Allow WebP images to be used as attachments and avatars
This branch adds image/webp to the list of supported image types. This allows image/webp attachments to be displayed, which is a prerequisite for #2048. It also allows WebP files to be selected as attachments and avatars.
If we merge this before the 1.3 production release then relatively few users will have compatibility issues when we implement #2048.