Set prefix based on where document loads
Merge pull request #37 from richo/bugs/37

Please make proxying airshipd through a web server easier.