whole_func_string: function deploy(req, res) {
      var stackName = req.params.stack,
          regionName = req.params.region,
          to = req.body.to_revision, user;
  
      dreadnot.deploy(stackName, regionName, to, req.remoteUser.name, function(err, number) {
        if (err) {
          res.respond(err);
          return;
        } else {
          res.redirect(sprintf('/stacks/%s/regions/%s/deployments/%s', stackName, regionName, number));
        }
      });
    }
func_code_string: function deploy(req, res) {
      var stackName = req.params.stack,
          regionName = req.params.region,
          to = req.body.to_revision, user;
  
      dreadnot.deploy(stackName, regionName, to, req.remoteUser.name, function(err, number) {
        if (err) {
          res.respond(err);
          return;
        } else {
          res.redirect(sprintf('/stacks/%s/regions/%s/deployments/%s', stackName, regionName, number));
        }
      });
    }
func_documentation_string: Handle attempted deployments. Redirect to the deployment on success. On stack locked errors, redirect to the region view, otherwise a full error view.