BAC-629: add a backtrace reporting to modil (release merge)

Adding better logging to modil.js to gather more data during the weekend.

See #1291 for details.