Port mod_post_log to ejabberd 14.07

This commit closes #1.