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.

@nedbat @jarv @cahrens: Review?
@wedaly @cdodge: This now touches mixed-modulestore, so can I get a review from that perspective as well?