Docs all task

This implements #105.

I'm not completely happy with this, there's some confusion between the words master index (`docs/index.html`) and project index (`docs/PROJ/index`) because the master index has title project index and the patch seems unnecessarily invasive. So I'm submitting this as a "take a look at it" request. It works and seems to do the job, it's just the innards that aren't very pretty.