Declare purl as string literal

Declare purl as string literal so we can do ´import purl = require("purl")´.
Merge pull request #2334 from geirsagberg/patch-1

Declare purl as string literal