Permit installation in a subdirectory.

Added a couple of environment variables to do this, and fixed up links
and paths where I found they were causing issues; probably missed a
few.

Also created an .htaccess file sample, and updated README.
Merge pull request #13 from samwilson/subdir

Permit installation in a subdirectory. Looks good to me. I'll merge it - thanks!