allow referer to come in as a param

HTTP referer gets dropped when coming from HTTPS
Merge pull request #4 from tablexi/referer

allow referer to come in as a param