Added a bunch of endpoints to setup_magic.py, for setup flow work