Move wizard related functions out of Open coffeescript and into their own file.