Lib.pm: add a pre_output hook
getpaste: fix simple-pastebin mode

Derp. I never actually tested pastebin.com...
Merge virgule:code