Feature/faster deploy

@calston I realize this is a bunch of bash. I've tested it extensively but have a look please.