Adding rudimentary hold support

As the title says, I added some rudimentary hold support as Max mentioned here http://librelist.com/browser//homebrew/2011/2/10/how-do-you-hold-a-package/#70c01a17185156a819144fe006e9cd3d

Apologies for any bad Ruby that I may have written.