- pass jid into feature_check_packet hook;
- bounce messages when closing c2s session;
- implemented treap:to_list/1 and treap:from_list/1
Refactor code to reduce calls to get_affiliation and get_role (thanks to Steam)(EJAB-1038)
Fix crash in number of occupants; other minor changes (EJAB-1038)
Fix indentation (EJAB-1038)
Allow customizing the StateData in p1_fsm before error reporting.

A new callback is introduced on the p1_fsm behaviour:

print_error/1

If the module implements this function, it will be invoked
in case of process crash with the current state data *before*
printing the error in the log. The function must return the
desired State to print.

It is used in ejabberd_c2s to prune the presence sets that
can be large. Instead, the state is changed to include only
the # of elements on each set.

Change inspired in comming changes to gen_server on OTP, and
http://github.com/erlyvideo/erlyvideo/commit/b01d15abc3189226dbf824db19db22da35fa33a0#diff-0
Remove warning for undefined print_state/1 function for p1_fsm processes (thanks Badlop).

Include a identity function as implementation of print_state/1.
LDAP extensible match support (EJAB-722)
allow inband password change (EJAB-199)
added notes about LDAP password change
Recompile the Guide
Don't send error stanza as reply to error stanza (EJAB-930)
Fixed Bugs handling Service Discovery to contacts.

Resolves [#EJAB-1207]
No need to handle IQ requests other than Get and Set
Automatic vcard avatar addition in presence (thanks to Igor Goryachev)(EJAB-208)
Don't store blocked messages in offline queue (thanks to Brian Acton)(EJAB-1224)
New Access rule webadmin_view for read-only (thanks to Oleg Palij)(EJAB-213)
Reduce verbosity of log when captcha_cmd is checked but not configured.
Rename some JEP references to XEP
Minor fixes in listeners options list
Add xml default content type (thanks to Aaron Winborn)(EJAB-1214)