Inline gists in hacking document

Instead of referring to external resources, the document is now more
self-contained. I felt that the patches were sufficiently simple that
they were better expressed as editing instructions. The advantage of
plain text editing instructions is that anybody can apply them without
having to know how to use patch(1).