[FIX] mail: more robust parsing of In-Reply-To/References (OPW 608919)

When parsing incoming messages, ignore white-space around
In-Reply-To headers, and extract message-id items inside
the References header using a regex.
This actually serves as a workaround for broken MTAs
mangling References (such as outlook.com nesting past ones
with commas, violating RFC2822).

Closes #516 as a manual rebase.
[FIX] web: chain close action on wizard confirm

If a wizard has several steps, or laucnh a second wizard, the view from where has been loaded the initial wizard is finally reloaded
[IMP] Optimize the schedulers of the calendar, fetchmail and base_action_rules modules

Disable the the crons when they'd have nothing to do, re-enable them when a
task is (probably) introduced
[FIX] account_payment: lin2bank correct fallback condition
[IMP] web: extra comments to explain commit 57b4860

Added some cryptic comments so we remember a bit
why we have a complicated dance with on_close.
Basically we do not want to reload the
original form view until the last popup is closed,
in the case where several wizard (steps) are opened
one after the other.
[FIX] payment_paypal: avoid json decode error

with post.pop('custom', '{}'), if the key 'custom' is not there, it will return '{}', but if the key is there, but the value is equivalent to False, the json decode will fail.
[FIX] website_forum_doc: forum.documentation.stage readable by all
[FIX] mrp: do not reset back stock moves to confirm

For instance, setting a BOM Phantom with:
Finished product: stockable, MTO Manufacture
Components: stockable, MTS, Buy. Inventory set to 1000
Stock moves of components are directly set to assigned once the procurement confirmed thanks to JIT
The stock moves should not be set back to confirmed after they have been assigned
[MERGE] forward port of branch 7.0 up to 7307227
[IMP] crm_partner_assign: remove inexistant onchange

This field is readonly so a onchange is useless anyway (opw 612593)
[FIX] stock: on partial picking, do no open a new window action if not needed

This is related to rev. dd4d72d

Not opening a new window action allows to keep the current list of stock picking being threated, and to use the next an previous arrow of the forom view of the web client.
[MERGE] forward port of branch 7.0 up to 5872c24
[FIX] document: display Attachment(s) menu only on form view

The attachment menu (list and add) has no effect in tree view (not supporting multi-items upload and display), the menu should then only be displayed in these view (opw 612534)
[FIX] web: wait onchanges to be processed before save
[FIX] sale: keep page when confirming a sale order

To keep the pager and view changer after confirmation of a sale order, do not reload the view (quotation and sale order view are the same anyway)
Fixes #250
[MERGE] forward port of branch 7.0 up to 59b76ee
[MERGE] forward port of branch saas-3 up to 3d80dc2
[FIX] website_quote: onchange return nothing if product is False
[MERGE] forward port of branch saas-5 up to 9363bc9