adds the `max_attachment_size_kb` setting

so that we can specify a different max upload size for attachments and images.
Merge pull request #1199 from ZogStriP/uploads

adds the `max_attachment_size_kb` setting