New code for applypatches().
- Understands diffs generated by diff(1), not only subversion.
- Removes empty files after patching.
- With a patch queue doesn't batch patching and removing, instead iterates over queue, and does removals after each patch. Slower, but less prone to errors.
Sponsored by: Nginx, Inc.