Add basic authentification using HTTPBasicAuth. Fix some issues in database files
Switch from HTTPBasicAuth to using Flask-Login
Adding SPA login, checkpoint