First cut at shell provision script

(barely tested)