mod_sasl2: Further break up success handling, into pre/post stream:features
This allows us to enable mod_smacks after sending success, but before sending
stream:features. Previously, the features were being calculated before SM was
finalized on the session.
We can't finalize SM before sending <success> because it may generate stanzas.
module:set_global();
local log = _G.log;
module:add_timer(60-os.date("%S"), function (now)
log("info", "-- MARK --");
return 90 - ((now + 30) % 60);
end);