Update dev and header to deal with running above root.

I have a number of dev sites on my local machine,
so it's better for me to run my local copy as

localhost/justdelete.me/

... this wouldn't work since requests from justdelete.me were made
to ABSOLUTE root. These changes should resolve that while having the
site still work as absolute root (such as on the production server).