Implement dropping patches

If patches can only be reverse applied, they have been merged into the
upstream codebase by other means. That implies we can just drop it (and
add a changes entry).
Use compiled regular expressions

For some extra performance.