Reworked to remove Beaker deps (uses Werkzeug for sessions) and handles SLO