[smart] Add on_multiplicity and do_multiplicity methods.

Be careful since the behavior of on_multiplicity is not the same than other on_ methods.
Improve prosody installation doc.
Fix refactoring
[smart] add doc on on_mulitplicity