This is a continuation of !294 - as that PR seemed abandoned. I've kept @azazel as a co-author.
This allows the configuration of sieve's extensions. If this isn't configured the setting is not added, since that would unset the default extensions (see the discussions in !294)