This is still very bare bones, and there is _much_ more to still handle. However, this implements enough functionality to parse a single unified patch read from stdin, and apply it to a file.