formatter: improved error reporting
- Improves error reporting for bibformat elements to include traceback in template when in debug mode, as well as using the Flask application logger to report the error.
Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>