Split auto.js very roughly so the pieces can be reused in a built rave.
Move reusable start-up code to rave/lib/run.