Best practice for web-apps is to have a session per web request.
Instead of having a per worker-thread, we add a middleware that
generates a unique ID per request, utilizing scoped_sessions
scopefunc (custom function for defining a session scope)
in combination with a ContextVar.
With this we create a new session per request.
Signed-off-by: moson <moson@archlinux.org>