Major refactor, including better use of shell provisioning and expect automation of canvas rake setup