Use pid files to prevent concurrent deploys.

This writes a pid file and uses it to decide if it's allowed to deploy or not.

We originally discussed the second cancelling the first, but I'm not sure how to accomplish that.