Initial backend overhaul

Removing sessions in favor of a unique auth_code introduced in 117249adb41cc845cbdea6c25ffe5d0009a1fc11.