Use the current paste-id when linking to historical pastes

Fixes #124.
Merge pull request #127 from Raynes/bug/visibility-history

Use the current paste-id when linking to historical pastes