mam.lib, mod_mam: don't always save logs if they aren't changed. (Fixes #80)