One time startup centralization

Make LMS and Studio one-time-startup code run both via manage.py and wsgi.py so that it's loaded in a consistent fashion.