[IMP] mail: avoid sending an email twice

In some specific conditions (e.g. admin logging during cron run, concurrent update), writing on the mail object may fail, triggering a rollback of the transaction.
As the write was done after the SMTP sendmail action, an email could be sent twice (state not correctly put, would be retried at next process of the email queue).
This patch provoke the error before the sendmail action and thus avoids sending the email.
Fixes #552
[IMP] base: safer locking at user login

When a users connects, a lock is taken on the res_user table to modify the last login date. If another running transaction uses a foreign key to res.users (e.g. write_uid column), postgres may detect the update as a concurrent update and rollback the transaction.
In pg 9.3, the lock_strength parameter 'NO KEY' allows a weaker lock which is less likely to break another transaction.
Fixes #552
[FIX] bus: prevent error popups when longpolling requests are interrupted

1b9c404 modified the /longpolling/poll requests
to use openerp.session.rpc() instead of openerp.jsonRpc().
In order to properly disable error popups, an
explicit preventDefault() call is now required.
[FIX] wms: fix lookup of xmlid route_warehouse0_buy

Fixes #2610 courtesy of gurneyalex
[FIX] l10n_be: Fix BS and P&L
[I18N] Update translations from Launchpad 8.0 branches

server: rev. 26 rev-id launchpad_translations_on_behalf_of_openerp-20140923072744-tkfs0yinu8msjh09
addons: rev. 39 rev-id launchpad_translations_on_behalf_of_openerp-20140923072715-5j7qvnuvmmb1zzy1
web: rev. 23 rev-id launchpad_translations_on_behalf_of_openerp-20140923072757-jvh9l6r2x0vfcyhb
[FIX] Report: compatibility issues on Windows

This commit fixes two different issues specific to Windows:
* NamedTemporaryFile behavior, requiring a file to be closed before being
  accessed a second time
* Wkhtmltopdf crash when the document's dpi is inferor to 96
[FIX] report: windows: lower level of file opening/closing, which to find wkhtmltpdf

* Use of 'which' to find the wkhtmltopdf binary (allow the win32 service to find it)
* Use of mkstemp and manual close of the file descriptors
[FIX] account: typo in conversion to new API
[FIX] Update README for 8.0
[I18N] Update translation templates with latest term changes
[FIX] product: typo in field string
[FIX] survey: wrong record passed to action_survey_resent

The method action_survey_resent expects a survey.user_input instead of a hr.evaluation.interview record.
[FIX] web: base.css: visible overflow for oe_view_manager_body on media print
[FIX] mail: position of show more message button
[FIX] google_calendar: browse user as SUPERUSER_ID to be able to write/update google_calendar info on user
[FIX] ir_models: fix registry when we add/remove/modify a custom model/field
[FIX] Report: attachment and attachment_use: fix logic

Previously, attachment and attachment_use were only functionnal when used
simultaneously. The code did not consider the fact that the user may want
an historic of all the printed reports. This commit allow the use of
attachment without attachment_use.

It also tell explicitely qweb to generate the branding (used to separate
reports from a unique html when printing multiple reports). Before, it was
functional only when website was installed, because we forced 'editable' that
only has meaning in website.
[FIX] Report: attachment_use need attachment
[FIX] css: overflow-x: auto should be on modal-body