Don't show uploading forms if the relevant site settings are disabled

This removes the upload file option in the composer if max_attachment_size_kb is 0, and doesn't show the upload avatar modal if allow_uploaded_avatars is false.