Move logic of ./otree script to otree-core.
Move logic of ./otree-heroku script to otree-core.