Initial complete (and working) deployment script.