Make pastebin responsive, and refactor pastebin CSS/JS

Fixes #143.