Patch creation

This changes the format of every patch-related class, introduces building BSAs from the legacy diffs, and fixes some ugly bugs (which were mostly BSA#'s fault)