Use Flask-Login
Swtich from g.current_member to current_user
Move login_required_api() to fastladder.login