make state field name same as config key name
Merge branch 'user_presence' of https://github.com/edwardt/ejabberd-modules into user_presence