[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] account: invoiced button values must be calculated as the user

Otherwise, if done with the superuser:
 - The multi-company rules won't work, the user will have the amount of all invoices, cross-companies
 - The amount currency will always be the currency of the superuser
[FIX] account: several fixes on the new bank statement reconciliation widget
[FIX] correct css computation to remove unnecessary toolbar
[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] website_sale: customer write on public user and the sale order is apply to public user if the public user is active=True; the checkout layout display state_id field twice
[FIX] im_chat : enable chat widget only for base.group_user
[ADD] doc's readme

* also only enable linkcode if Sphinx >= 1.2
* fix html inline roles?
[ADD] support for a version switcher in odoo theme thing

needs beauty input
[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)