moved a couple files around, moved debug into global options, refactored deploy script with shelljs, corrected various mistakes