apply patches to run pastebin as an internal server on nginx

- remove hard coded layouts specific to pastebin.com
- apache_note is not available when you run nginx