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.