Move debug flag to indico.conf
Refactor webassets usage

- Global core environment (not inside WPBase)
- Debug flag is checked in the constructor
- Jinja extension can be used
Add base jinja template
Don't try to connect to the db at import time!